# HG changeset patch # User Waqas Hussain # Date 1242351282 -18000 # Node ID d71a8f28f18be0184217332a8868019c75f7b6e2 # Parent 72fc323050c131aab056c04d735ceea64d5dc481 mod_presence: Added a FIXME comment about directed presence diff -r 72fc323050c1 -r d71a8f28f18b plugins/mod_presence.lua --- 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);