aboutsummaryrefslogtreecommitdiff
path: root/modules/disable.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-02-26 19:52:02 +0000
committerGravatar Sadie Powell2026-02-26 19:53:21 +0000
commitcc3c9c7cb47589a72a0ff61a715bb17e246a10c5 (patch)
treebf44022727c4d44cdb8341a6ad2eec42c6932278 /modules/disable.cpp
parentFix the old name of the noctcp mode. (diff)
Add a numeric helper for ERR_NOPRIVILEGES.
Diffstat (limited to 'modules/disable.cpp')
-rw-r--r--modules/disable.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}