Mercurial > prosody-modules
diff mod_protect_last_admin/mod_protect_last_admin.lua @ 6328:187b957dc528
mod_protect_last_admin: Switch to service-unavailable rather than policy-violation
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 30 Sep 2025 15:55:57 +0100 |
| parents | 4f6fb56572f7 |
| children | d1f64ffca879 |
line wrap: on
line diff
--- a/mod_protect_last_admin/mod_protect_last_admin.lua Mon Sep 29 21:28:18 2025 +0100 +++ b/mod_protect_last_admin/mod_protect_last_admin.lua Tue Sep 30 15:55:57 2025 +0100 @@ -10,7 +10,7 @@ ["cannot-remove-only-admin"] = { code = 400; type = "cancel"; - condition = "policy-violation"; + condition = "service-unavailable"; text = "Cannot remove the only administrator"; extra = { namespace = "https://prosody.im/protocol/errors";
