Changeset

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
parents 3289:180a0b3b018d
children 3291:c06b3f7c92b1
files plugins/mod_pep.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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