aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-24 19:24:02 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-24 19:24:02 +0500
commit0ad0b31f472bdc103f73140d660cd331ae145bf9 (patch)
tree5242b1da658b73dc198b7c6a5eb7878266b8eb9a
parentdf420bb8e63c608160e28ece4f00ec1d829f947d (diff)
downloadprosody-0ad0b31f472bdc103f73140d660cd331ae145bf9.tar.gz
prosody-0ad0b31f472bdc103f73140d660cd331ae145bf9.zip
mod_pep: Fixed detection of contact presence changes
-rw-r--r--plugins/mod_pep.lua4
1 files 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);