# HG changeset patch # User Kim Alvefur # Date 1507549553 -7200 # Node ID 967f04fe7fd4314e40c2bec3529529d2a5692212 # Parent 1d2149d84c72e8ef8fd96cd10f145df620d4a82e mod_pep_plus: Add missing variable diff -r 1d2149d84c72 -r 967f04fe7fd4 plugins/mod_pep_plus.lua --- a/plugins/mod_pep_plus.lua Mon Oct 09 02:22:33 2017 +0200 +++ b/plugins/mod_pep_plus.lua Mon Oct 09 13:45:53 2017 +0200 @@ -359,9 +359,11 @@ -- 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];