Software /
code /
prosody
Changeset
8315:967f04fe7fd4
mod_pep_plus: Add missing variable
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 09 Oct 2017 13:45:53 +0200 |
parents | 8314:1d2149d84c72 |
children | 8316:8648cb171213 |
files | plugins/mod_pep_plus.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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];