aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-02 16:22:37 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-02 16:22:37 +0500
commit39a5e9a883252d47c603355d6edd7a8a380f2cb6 (patch)
tree5153e37447aceaf3e4531eef00c72c23bbe01654 /plugins
parent71e6ba9a5ca7ba5f2305637698ae5d80fdc00089 (diff)
downloadprosody-39a5e9a883252d47c603355d6edd7a8a380f2cb6.tar.gz
prosody-39a5e9a883252d47c603355d6edd7a8a380f2cb6.zip
mod_presence: return true from incoming presence handlers to prevent further processing
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_presence.lua2
1 files changed, 2 insertions, 0 deletions
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);