# HG changeset patch # User Kim Alvefur # Date 1638993976 -3600 # Node ID 9ab202e942f55b3f2f577472528fdbe4842ce04e # Parent 5fb16f41f861a6f77a82ca104f5ea6c2086b5304 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'. diff -r 5fb16f41f861 -r 9ab202e942f5 plugins/muc/register.lib.lua --- 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"));