From b13b1b8a0613e48013ca9f6a5279559d0aee0f73 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 5 Sep 2017 17:54:40 +0100 Subject: Convert uncontroversial anonymous numerics to use constants. --- src/modules/m_mlock.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/modules/m_mlock.cpp') diff --git a/src/modules/m_mlock.cpp b/src/modules/m_mlock.cpp index 2a0410bed..85787ae96 100644 --- a/src/modules/m_mlock.cpp +++ b/src/modules/m_mlock.cpp @@ -19,6 +19,12 @@ #include "inspircd.h" +enum +{ + // From Charybdis. + ERR_MLOCKRESTRICTED = 742 +}; + class ModuleMLock : public Module { StringExtItem mlock; @@ -50,7 +56,7 @@ class ModuleMLock : public Module std::string::size_type p = mlock_str->find(mode); if (p != std::string::npos) { - source->WriteNumeric(742, channel->name, mode, *mlock_str, "MODE cannot be set due to channel having an active MLOCK restriction policy"); + source->WriteNumeric(ERR_MLOCKRESTRICTED, channel->name, mode, *mlock_str, "MODE cannot be set due to channel having an active MLOCK restriction policy"); return MOD_RES_DENY; } -- cgit v1.3.1-10-gc9f91