Diff

plugins/mod_pep.lua @ 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
parent 1338:0bfc8d866479
child 1400:cbbb4f4fed68
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);