mod_pep: Fixed detection of contact presence changes

Wed, 24 Jun 2009 19:24:02 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Wed, 24 Jun 2009 19:24:02 +0500
changeset 1399
8879f8278762
parent 1398
141fec125af0
child 1400
cbbb4f4fed68

mod_pep: Fixed detection of contact presence changes

plugins/mod_pep.lua file | annotate | diff | comparison | revisions
--- 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