Diff

plugins/muc/muc.lib.lua @ 9054:0bf0ff3b0f91

MUC: Use JID from correct place when adding <body> to mediated invites (thanks Link Mauve/lovetox)
author Matthew Wild <mwild1@gmail.com>
date Tue, 17 Jul 2018 18:15:15 +0100
parent 9052:5017e43ccc39
child 9055:603887e0e69b
line wrap: on
line diff
--- 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);