stanza_router: Remove unnecessary directed presence handling

Fri, 15 May 2009 06:34:08 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 15 May 2009 06:34:08 +0500
changeset 1149
72fc323050c1
parent 1148
5dafbc0ded34
child 1150
d71a8f28f18b

stanza_router: Remove unnecessary directed presence handling

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Fri May 15 06:31:32 2009 +0500
+++ b/core/stanza_router.lua	Fri May 15 06:34:08 2009 +0500
@@ -117,11 +117,6 @@
 				return; -- FIXME what should we do here? does this work with subdomains?
 			end
 		end
-		if origin.type == "c2s" and stanza.name == "presence" and to ~= nil and not(origin.roster[to_bare] and (origin.roster[to_bare].subscription == "both" or origin.roster[to_bare].subscription == "from")) then -- directed presence
-			origin.directed = origin.directed or {};
-			origin.directed[to] = true;
-			--t_insert(origin.directed, to); -- FIXME does it make more sense to add to_bare rather than to?
-		end
 		if not to then
 			core_handle_stanza(origin, stanza);
 		elseif hosts[to] and hosts[to].type == "local" then -- directed at a local server

mercurial