diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-06-24 03:29:39 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-06-24 03:29:39 +0500 |
commit | 0b720ffe35edf797b9c58c21b4e4c40add512c30 (patch) | |
tree | 9b5358135a45b34ff07bd786f12236f36d8a95c2 | |
parent | 02dddbbc8d09af7b841dcd4a3a6fecb600018528 (diff) | |
download | prosody-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.
-rw-r--r-- | plugins/mod_pep.lua | 4 |
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 |