plugins/mod_pep.lua

changeset 1399
8879f8278762
parent 1338
0bfc8d866479
child 1400
cbbb4f4fed68
--- 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);

mercurial