# HG changeset patch # User Waqas Hussain # Date 1277332179 -18000 # Node ID 1eec2bd19bf7e18fc664423f7437baf7ec7d37e2 # Parent 180a0b3b018d1e456230fdcbea6ae4a6a04f2bf8 mod_pep: Fixed a possible traceback during disco#items queries on a user's bare JID by remote users. diff -r 180a0b3b018d -r 1eec2bd19bf7 plugins/mod_pep.lua --- 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