From 595c902284fbb1ad6a7662703a6926906f494ddc Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 17 Jul 2018 18:15:15 +0100 Subject: MUC: Use JID from correct place when adding to mediated invites (thanks Link Mauve/lovetox) --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index fc22a630..338f07be 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1088,7 +1088,7 @@ module:hook("muc-invite", function(event) 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); -- cgit v1.2.3