# HG changeset patch # User JC Brand # Date 1609937329 -3600 # Node ID caaa40f072da9b42906fc1010895b52f858759dc # Parent 3dd7840cb9230174cccc921114630111b890bada mod_muc_http_auth: `no-authorized` error must be of type `auth` diff -r 3dd7840cb923 -r caaa40f072da mod_muc_http_auth/mod_muc_http_auth.lua --- 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);