diff plugins/muc/members_only.lib.lua @ 12029:631b2afa7bc1

MUC: Remove <{muc}x> tags in some errors Including the payload of the stanza that caused the error is optional and we're generally not doing it anywhere else.
author Kim Alvefur <zash@zash.se>
date Wed, 08 Dec 2021 21:55:25 +0100
parents 5fb16f41f861
children 74b9e05af71e
line wrap: on
line diff
--- a/plugins/muc/members_only.lib.lua	Wed Dec 08 21:06:16 2021 +0100
+++ b/plugins/muc/members_only.lib.lua	Wed Dec 08 21:55:25 2021 +0100
@@ -122,7 +122,7 @@
 		local affiliation = room:get_affiliation(stanza.attr.from);
 		if valid_affiliations[affiliation or "none"] <= valid_affiliations.none then
 			local reply = st.error_reply(stanza, "auth", "registration-required", nil, room.jid):up();
-			event.origin.send(reply:tag("x", {xmlns = "http://jabber.org/protocol/muc"}));
+			event.origin.send(reply);
 			return true;
 		end
 	end