From 739fcf0e20f8884a1b7de3aa857f978faf568db2 Mon Sep 17 00:00:00 2001
From: Waqas Hussain <waqas20@gmail.com>
Date: Tue, 2 Jun 2009 15:59:03 +0500
Subject: mod_presence: Add hooks for inbound presence

---
 plugins/mod_presence.lua | 9 +++++++++
 1 file changed, 9 insertions(+)

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);
-- 
cgit v1.2.3