Tue, 02 Jun 2009 15:59:03 +0500
mod_presence: Add hooks for inbound presence
plugins/mod_presence.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/mod_presence.lua Tue Jun 02 15:58:19 2009 +0500 +++ b/plugins/mod_presence.lua Tue Jun 02 15:59:03 2009 +0500 @@ -297,3 +297,12 @@ module:hook("pre-presence/full", outbound_presence_handler); module:hook("pre-presence/bare", outbound_presence_handler); module:hook("pre-presence/host", outbound_presence_handler); + +module:hook("presence/bare", function(data) + -- inbound presence to bare JID recieved + local origin, stanza = data.origin, data.stanza; +end); +module:hook("presence/full", function(data) + -- inbound presence to full JID recieved + local origin, stanza = data.origin, data.stanza; +end);