Mercurial > prosody-modules
diff mod_muc_http_auth/mod_muc_http_auth.lua @ 4319:caaa40f072da
mod_muc_http_auth: `no-authorized` error must be of type `auth`
author | JC Brand <jc@opkode.com> |
---|---|
date | Wed, 06 Jan 2021 13:48:49 +0100 |
parents | aec8148df26a |
children | 9606e7a63a69 |
line wrap: on
line diff
--- a/mod_muc_http_auth/mod_muc_http_auth.lua Tue Jan 05 20:51:23 2021 +0100 +++ b/mod_muc_http_auth/mod_muc_http_auth.lua Wed Jan 06 13:48:49 2021 +0100 @@ -55,7 +55,7 @@ -- User is not authorized to join this room err = (response or {}).err or err module:log("debug", user_bare_jid .. " is not authorized to " ..verb.. ": " .. room.jid .. " Error: " .. tostring(err)); - origin.send(st.error_reply(stanza, "error", "not-authorized", nil, module.host)); + origin.send(st.error_reply(stanza, "auth", "not-authorized", nil, module.host)); return true; end @@ -67,4 +67,4 @@ module:hook("muc-register-iq", handle_presence); end -module:hook("muc-occupant-pre-join", handle_presence); \ No newline at end of file +module:hook("muc-occupant-pre-join", handle_presence);