diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-08 21:06:16 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-08 21:06:16 +0100 |
commit | 1c0c380203e22f9fba14186380e187b956722220 (patch) | |
tree | 4e9ef2ca2e6fbba9217b12bf22abcb7a0186a663 | |
parent | d621e0626cc19c7e9de8956079df3f2abe148251 (diff) | |
download | prosody-1c0c380203e22f9fba14186380e187b956722220.tar.gz prosody-1c0c380203e22f9fba14186380e187b956722220.zip |
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'.
-rw-r--r-- | plugins/muc/register.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/register.lib.lua b/plugins/muc/register.lib.lua index c1ff5840..7a3c5666 100644 --- a/plugins/muc/register.lib.lua +++ b/plugins/muc/register.lib.lua @@ -121,7 +121,7 @@ local function handle_register_iq(room, origin, stanza) 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")); |