diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-02 15:59:03 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-02 15:59:03 +0500 |
commit | 739fcf0e20f8884a1b7de3aa857f978faf568db2 (patch) | |
tree | db69357d63129b7f3bc972082c5713b89b9cc8b1 | |
parent | fca25126502ceb8defe51877baf6c1f07cfd7670 (diff) | |
download | prosody-739fcf0e20f8884a1b7de3aa857f978faf568db2.tar.gz prosody-739fcf0e20f8884a1b7de3aa857f978faf568db2.zip |
mod_presence: Add hooks for inbound presence
-rw-r--r-- | plugins/mod_presence.lua | 9 |
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);
|