aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-05-15 17:33:04 +0200
committerTobias Markmann <tm@ayena.de>2009-05-15 17:33:04 +0200
commit672ffb89624c3af6badb7354a6bcd9c0d7624e48 (patch)
tree74f77ffb11e96241a74cbf9136a424b3fe493cf5 /plugins
parentb35bf3760e750fa55ea3ad5d4e97c59ba2eda9a1 (diff)
parentd836e5c09de5c45af4c76cc8cc66458bc0c5deec (diff)
downloadprosody-672ffb89624c3af6badb7354a6bcd9c0d7624e48.tar.gz
prosody-672ffb89624c3af6badb7354a6bcd9c0d7624e48.zip
Merging SASL buggy client workaround with current tip.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 2fb976b5..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);
@@ -268,6 +268,7 @@ local function presence_handler(data)
core_route_stanza(origin, stanza);
end
end
+ return true;
end
local add_handler = require "core.eventmanager2".add_handler;