# HG changeset patch # User Matthew Wild # Date 1531847715 -3600 # Node ID 0bf0ff3b0f919bd88eb4cab5f68404aca5b4a0e2 # Parent ea9e1f8f3013055a590d5bbdd970b3c0a932a7e6 MUC: Use JID from correct place when adding to mediated invites (thanks Link Mauve/lovetox) diff -r ea9e1f8f3013 -r 0bf0ff3b0f91 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Tue Jul 17 11:57:28 2018 +0100 +++ b/plugins/muc/muc.lib.lua Tue Jul 17 18:15:15 2018 +0100 @@ -1088,7 +1088,7 @@ local invite = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("invite"); local reason = invite:get_child_text("reason") or ""; stanza:tag("body") - :text(invite.attr.from.." invited you to the room "..room.jid..(reason == "" and (" ("..reason..")") or "")) + :text(jid_bare(stanza.attr.from).." invited you to the room "..room.jid..(reason == "" and (" ("..reason..")") or "")) :up(); end end);