Software /
code /
prosody
Changeset
1399:8879f8278762
mod_pep: Fixed detection of contact presence changes
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 24 Jun 2009 19:24:02 +0500 |
parents | 1398:141fec125af0 |
children | 1400:cbbb4f4fed68 |
files | plugins/mod_pep.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);