diff options
author | daurnimator <quae@daurnimator.com> | 2014-03-19 17:50:49 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-03-19 17:50:49 -0400 |
commit | 2cacd0b95ae3df65b630a19c4ee866c02830def4 (patch) | |
tree | d4f383cea0edb3f690437ee40958f12570126068 /plugins/muc | |
parent | 061cc1c21602540ef72cdd765c171d2898ae3b83 (diff) | |
download | prosody-2cacd0b95ae3df65b630a19c4ee866c02830def4.tar.gz prosody-2cacd0b95ae3df65b630a19c4ee866c02830def4.zip |
plugins/muc/muc.lib: Use occupant jids when whois == "moderators"
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index af7bf356..30d9f96d 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -992,6 +992,9 @@ function room_mt:handle_mediated_invite(origin, stanza) end local _invitee = jid_prep(payload.attr.to); if _invitee then + if self:get_whois() == "moderators" then + _from = current_nick; + end local _reason = payload:get_child_text("reason") local invite = st.message({from = _to, to = _invitee, id = stanza.attr.id}) :tag('x', {xmlns='http://jabber.org/protocol/muc#user'}) |