Mercurial > prosody-modules
changeset 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 | 3dd7840cb923 |
children | 8fc16174fec6 |
files | mod_muc_http_auth/mod_muc_http_auth.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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);