From 28ea139bbb261257bf48ab0ef606ea39ba520e71 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 9 Oct 2017 13:45:53 +0200 Subject: mod_pep_plus: Add missing variable --- plugins/mod_pep_plus.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') 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]; -- cgit v1.2.3