mod_presence: Added a FIXME comment about directed presence

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

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 15 May 2009 06:34:42 +0500
changeset 1150
d71a8f28f18b
parent 1149
72fc323050c1
child 1151
8096941b6734

mod_presence: Added a FIXME comment about directed presence

plugins/mod_presence.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_presence.lua	Fri May 15 06:34:08 2009 +0500
+++ b/plugins/mod_presence.lua	Fri May 15 06:34:42 2009 +0500
@@ -252,7 +252,7 @@
 	if origin.type == "c2s" then
 		if 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;
+			origin.directed[to] = true; -- FIXME does it make more sense to add to_bare rather than to?
 		end
 		if 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);

mercurial