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 | 8b8a024db40b127db492f4a0dd93a94f4e3cf801 (patch) | |
tree | d4f383cea0edb3f690437ee40958f12570126068 | |
parent | 8f5af6d933d1f07db23b1c0f77ce0804c1643c84 (diff) | |
download | prosody-8b8a024db40b127db492f4a0dd93a94f4e3cf801.tar.gz prosody-8b8a024db40b127db492f4a0dd93a94f4e3cf801.zip |
plugins/muc/muc.lib: Use occupant jids when whois == "moderators"
-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'}) |