aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_presence.lua')
-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);