aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-02 15:59:03 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-02 15:59:03 +0500
commit739fcf0e20f8884a1b7de3aa857f978faf568db2 (patch)
treedb69357d63129b7f3bc972082c5713b89b9cc8b1
parentfca25126502ceb8defe51877baf6c1f07cfd7670 (diff)
downloadprosody-739fcf0e20f8884a1b7de3aa857f978faf568db2.tar.gz
prosody-739fcf0e20f8884a1b7de3aa857f978faf568db2.zip
mod_presence: Add hooks for inbound presence
-rw-r--r--plugins/mod_presence.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 4889838d..3ae6a0bd 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -297,3 +297,12 @@ end
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);