stanza_router: Removed some unnecessary code

Fri, 15 May 2009 08:42:53 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 15 May 2009 08:42:53 +0500
changeset 1157
279f79389189
parent 1156
14f3eb0e7787
child 1162
bd1f0e6d50a7
child 1163
8b4a57765b04

stanza_router: Removed some unnecessary code

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Fri May 15 08:30:48 2009 +0500
+++ b/core/stanza_router.lua	Fri May 15 08:42:53 2009 +0500
@@ -128,8 +128,6 @@
 			component_handle_stanza(origin, stanza);
 		elseif hosts[host] and hosts[host].type == "component" then -- directed at a component
 			component_handle_stanza(origin, stanza);
-		elseif origin.type == "c2s" and stanza.name == "presence" and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" and stanza.attr.type ~= "error" then
-			handle_outbound_presence_subscriptions_and_probes(origin, stanza, from_bare, to_bare, core_route_stanza);
 		elseif hosts[host] and hosts[host].type == "local" and stanza.name == "iq" and not resource then -- directed at bare JID
 			core_handle_stanza(origin, stanza);
 		else

mercurial