mod_pep_plus: Add missing variable

vault/0.11
Kim Alvefur 8 years ago
parent 3f2049414a
commit 28ea139bbb
  1. 2
      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];

Loading…
Cancel
Save