aboutsummaryrefslogtreecommitdiffstats
path: root/modules/operlevels.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/operlevels.cpp
parentFix the old name of the noctcp mode. (diff)
Add a numeric helper for ERR_NOPRIVILEGES.
Diffstat (limited to 'modules/operlevels.cpp')
-rw-r--r--modules/operlevels.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/operlevels.cpp b/modules/operlevels.cpp
index 5c4756d3a..91ae55ac8 100644
--- a/modules/operlevels.cpp
+++ b/modules/operlevels.cpp
@@ -25,6 +25,7 @@
#include "inspircd.h"
+#include "numerichelper.h"
class ModuleOperLevels final
: public Module
@@ -51,7 +52,7 @@ public:
source->nick, source_level, dest->nick, dest_level, reason);
}
dest->WriteNotice("*** Oper " + source->nick + " attempted to /KILL you!");
- source->WriteNumeric(ERR_NOPRIVILEGES, FMT::format("Permission Denied - Oper {} is a higher level than you", dest->nick));
+ source->WriteNumeric(Numerics::NoPrivileges("oper {} is a higher level than you", dest->nick));
return MOD_RES_DENY;
}
}