From 0ad0b31f472bdc103f73140d660cd331ae145bf9 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 24 Jun 2009 19:24:02 +0500 Subject: mod_pep: Fixed detection of contact presence changes --- plugins/mod_pep.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index f1dd0252..41ccf059 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -41,9 +41,9 @@ local function publish(session, node, item) end end -module:hook("presence/bare", function(data) +module:hook("presence/bare", function(event) -- inbound presence to bare JID recieved - local origin, stanza = data.origin, data.stanza; + local origin, stanza = event.origin, event.stanza; local user = stanza.attr.to or (origin.username..'@'..origin.host); local bare = jid_bare(stanza.attr.from); -- cgit v1.2.3