aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-09 13:45:53 +0200
committerKim Alvefur <zash@zash.se>2017-10-09 13:45:53 +0200
commitde4181c741bccf4830a9842a78edc191b6387009 (patch)
tree2422227d84429703d68e30678d5cfa320e422ea6
parent047dbc4feba737631f9b21f3ca9b7d00c2b4bcaf (diff)
downloadprosody-de4181c741bccf4830a9842a78edc191b6387009.tar.gz
prosody-de4181c741bccf4830a9842a78edc191b6387009.zip
mod_pep_plus: Add missing variable
-rw-r--r--plugins/mod_pep_plus.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua
index 7d4064df..09c9d07d 100644
--- a/plugins/mod_pep_plus.lua
+++ b/plugins/mod_pep_plus.lua
@@ -359,9 +359,11 @@ module:hook("iq-result/bare/disco", function(event)
-- Process disco response
local is_self = stanza.attr.to == nil;
+ local user_bare = jid_bare(stanza.attr.to);
local username = jid_split(stanza.attr.to);
if is_self then
username = origin.username;
+ user_bare = jid_join(username, host);
end
local contact = stanza.attr.from;
local current = recipients[username] and recipients[username][contact];