From cc3c9c7cb47589a72a0ff61a715bb17e246a10c5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 26 Feb 2026 19:52:02 +0000 Subject: Add a numeric helper for ERR_NOPRIVILEGES. --- modules/disable.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/disable.cpp') diff --git a/modules/disable.cpp b/modules/disable.cpp index e9eaa7af6..e4d3524e3 100644 --- a/modules/disable.cpp +++ b/modules/disable.cpp @@ -19,6 +19,7 @@ #include "inspircd.h" #include "modules/isupport.h" +#include "numerichelper.h" enum { @@ -220,7 +221,7 @@ public: } // Inform the user that the mode they changed has been disabled. - user->WriteNumeric(ERR_NOPRIVILEGES, FMT::format("Permission Denied - {} mode {} ({}) is disabled", + user->WriteNumeric(Numerics::NoPrivileges("{} mode {} ({}) is disabled", what, change.mh->GetModeChar(), change.mh->name)); return MOD_RES_DENY; } -- cgit v1.3.1-10-gc9f91