Changeset

12028:9ab202e942f5

MUC: Fix error origin JID in wrong argument position Mistake introduced in cbe524ed1a6a. Removing because this is a query to the bare JID where the error origin matches the resulting stanza 'from'.
author Kim Alvefur <zash@zash.se>
date Wed, 08 Dec 2021 21:06:16 +0100
parents 12027:5fb16f41f861
children 12029:631b2afa7bc1
files plugins/muc/register.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/register.lib.lua	Wed Dec 08 21:02:14 2021 +0100
+++ b/plugins/muc/register.lib.lua	Wed Dec 08 21:06:16 2021 +0100
@@ -121,7 +121,7 @@
 	local user_jid = jid_bare(stanza.attr.from)
 	local affiliation = room:get_affiliation(user_jid);
 	if affiliation == "outcast" then
-		origin.send(st.error_reply(stanza, "auth", "forbidden", room.jid));
+		origin.send(st.error_reply(stanza, "auth", "forbidden"));
 		return true;
 	elseif not (affiliation or allow_unaffiliated) then
 		origin.send(st.error_reply(stanza, "auth", "registration-required"));