# HG changeset patch # User daurnimator # Date 1395265849 14400 # Node ID 8a71a1c34202468ac4164d806b39ac404e8258eb # Parent a66ebc5d0ab52b5df4e1fd53bb05496ee54c5952 plugins/muc/muc.lib: Use occupant jids when whois == "moderators" diff -r a66ebc5d0ab5 -r 8a71a1c34202 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Wed Mar 19 17:50:00 2014 -0400 +++ b/plugins/muc/muc.lib.lua Wed Mar 19 17:50:49 2014 -0400 @@ -992,6 +992,9 @@ 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'})