aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-24 03:29:39 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-24 03:29:39 +0500
commit0b720ffe35edf797b9c58c21b4e4c40add512c30 (patch)
tree9b5358135a45b34ff07bd786f12236f36d8a95c2 /plugins/mod_pep.lua
parent02dddbbc8d09af7b841dcd4a3a6fecb600018528 (diff)
downloadprosody-0b720ffe35edf797b9c58c21b4e4c40add512c30.tar.gz
prosody-0b720ffe35edf797b9c58c21b4e4c40add512c30.zip
mod_pep: Fixed a possible traceback during disco#items queries on a user's bare JID by remote users.
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 31546dff..103e3e73 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -289,8 +289,8 @@ module:hook("account-disco-info", function(event)
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