# HG changeset patch # User Waqas Hussain # Date 1245853442 -18000 # Node ID 8879f8278762f7eb61ad8a73a63cde8f1cdc0f55 # Parent 141fec125af07e42eae5bc617e4c52c14598a0a6 mod_pep: Fixed detection of contact presence changes diff -r 141fec125af0 -r 8879f8278762 plugins/mod_pep.lua --- a/plugins/mod_pep.lua Wed Jun 24 01:37:03 2009 +0500 +++ b/plugins/mod_pep.lua Wed Jun 24 19:24:02 2009 +0500 @@ -41,9 +41,9 @@ 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);