# HG changeset patch # User Matthew Wild # Date 1759244157 -3600 # Node ID 187b957dc5280a1443a1d957f363c15312695306 # Parent 4f6fb56572f7eca2998c935a72eb22134fdaa89f mod_protect_last_admin: Switch to service-unavailable rather than policy-violation diff -r 4f6fb56572f7 -r 187b957dc528 mod_protect_last_admin/mod_protect_last_admin.lua --- 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";