aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_pep.lua')
-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);