# HG changeset patch # User Waqas Hussain # Date 1243941757 -18000 # Node ID c0fb8379696eb9c81b2d12b8904f8bb2ab594410 # Parent 2e57f2176612ccbde8bba5fde0f1f966024a750d mod_presence: return true from incoming presence handlers to prevent further processing diff -r 2e57f2176612 -r c0fb8379696e plugins/mod_presence.lua --- a/plugins/mod_presence.lua Tue Jun 02 16:21:20 2009 +0500 +++ b/plugins/mod_presence.lua Tue Jun 02 16:22:37 2009 +0500 @@ -321,6 +321,7 @@ 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 @@ -- TODO fire post processing event session.send(stanza); end -- resource not online, discard + return true; end);