Diff

plugins/mod_pep.lua @ 3290:1eec2bd19bf7

mod_pep: Fixed a possible traceback during disco#items queries on a user's bare JID by remote users.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 24 Jun 2010 03:29:39 +0500
parent 3132:4d2251242ac1
child 3344:b16f842b7525
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Tue Jun 22 20:54:15 2010 +0100
+++ b/plugins/mod_pep.lua	Thu Jun 24 03:29:39 2010 +0500
@@ -289,8 +289,8 @@
 end);
 
 module:hook("account-disco-items", function(event)
-	local session, stanza = event.session, event.stanza;
-	local bare = session.username..'@'..session.host;
+	local stanza = event.stanza;
+	local bare = stanza.attr.to;
 	local user_data = data[bare];
 
 	if user_data then