From 5876adcc5e0d8700730ac6115fd30868836d6320 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 15 May 2009 06:28:02 +0500 Subject: mod_presence: return true from the presence handler --- plugins/mod_presence.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 2fb976b5..415e5313 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -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; -- cgit v1.2.3 From 6882c5dae0fb22e103df404bdff4b2926a6c968e Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 15 May 2009 06:34:42 +0500 Subject: mod_presence: Added a FIXME comment about directed presence --- plugins/mod_presence.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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); -- cgit v1.2.3