From 39a5e9a883252d47c603355d6edd7a8a380f2cb6 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 2 Jun 2009 16:22:37 +0500 Subject: mod_presence: return true from incoming presence handlers to prevent further processing --- plugins/mod_presence.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 15d1b9c1..fa070b7f 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -321,6 +321,7 @@ module:hook("presence/bare", function(data) else handle_normal_presence(origin, stanza, core_route_stanza); end + return true; end); module:hook("presence/full", function(data) -- inbound presence to full JID recieved @@ -337,4 +338,5 @@ module:hook("presence/full", function(data) -- TODO fire post processing event session.send(stanza); end -- resource not online, discard + return true; end); -- cgit v1.2.3