--- 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);