aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-15 06:34:42 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-15 06:34:42 +0500
commit6882c5dae0fb22e103df404bdff4b2926a6c968e (patch)
tree754f581c734a5595174b90c8cd193b3b788cdbaa /plugins/mod_presence.lua
parent669916fb93d1cbd6570e515290a7d3c934bd17b1 (diff)
downloadprosody-6882c5dae0fb22e103df404bdff4b2926a6c968e.tar.gz
prosody-6882c5dae0fb22e103df404bdff4b2926a6c968e.zip
mod_presence: Added a FIXME comment about directed presence
Diffstat (limited to 'plugins/mod_presence.lua')
-rw-r--r--plugins/mod_presence.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 415e5313..7c34eefa 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -252,7 +252,7 @@ local function presence_handler(data)
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);