diff options
| author | 2017-09-05 17:54:40 +0100 | |
|---|---|---|
| committer | 2017-09-06 10:44:41 +0100 | |
| commit | b13b1b8a0613e48013ca9f6a5279559d0aee0f73 (patch) | |
| tree | 963c043afff8d92edfd774f034b2fb0b9f1e2517 /src/modules/m_mlock.cpp | |
| parent | Change the numerics used by /COMMANDS to avoid a collision. (diff) | |
Convert uncontroversial anonymous numerics to use constants.
Diffstat (limited to 'src/modules/m_mlock.cpp')
| -rw-r--r-- | src/modules/m_mlock.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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; } |
