Software /
code /
prosody
Changeset
1284:c0fb8379696e
mod_presence: return true from incoming presence handlers to prevent further processing
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 02 Jun 2009 16:22:37 +0500 |
parents | 1283:2e57f2176612 |
children | 1285:0a6e2d6ae459 |
files | plugins/mod_presence.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);