aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-03-19 17:50:49 -0400
committerdaurnimator <quae@daurnimator.com>2014-03-19 17:50:49 -0400
commit8b8a024db40b127db492f4a0dd93a94f4e3cf801 (patch)
treed4f383cea0edb3f690437ee40958f12570126068 /plugins/muc
parent8f5af6d933d1f07db23b1c0f77ce0804c1643c84 (diff)
downloadprosody-8b8a024db40b127db492f4a0dd93a94f4e3cf801.tar.gz
prosody-8b8a024db40b127db492f4a0dd93a94f4e3cf801.zip
plugins/muc/muc.lib: Use occupant jids when whois == "moderators"
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua3
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'})