diff options
| author | 2018-01-27 12:24:47 +0000 | |
|---|---|---|
| committer | 2018-02-02 10:43:32 +0000 | |
| commit | c2376ac6f49ab01794a21a3e9bb7c1b3c5a1c2d8 (patch) | |
| tree | 48945089a65ba91aa1414821b60f88fae1592c2a /src/modules/m_abbreviation.cpp | |
| parent | Add ERR_INVALIDMODEPARAM for responding to invalid mode params. (diff) | |
Add names for a bunch of numerics.
Diffstat (limited to 'src/modules/m_abbreviation.cpp')
| -rw-r--r-- | src/modules/m_abbreviation.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modules/m_abbreviation.cpp b/src/modules/m_abbreviation.cpp index 2a38bd3a6..c81caf142 100644 --- a/src/modules/m_abbreviation.cpp +++ b/src/modules/m_abbreviation.cpp @@ -19,6 +19,12 @@ #include "inspircd.h" +enum +{ + // InspIRCd-specific. + ERR_AMBIGUOUSCOMMAND = 420 +}; + class ModuleAbbreviation : public Module { public: @@ -49,7 +55,7 @@ class ModuleAbbreviation : public Module { if (matchlist.length() > 450) { - user->WriteNumeric(420, "Ambiguous abbreviation and too many possible matches."); + user->WriteNumeric(ERR_AMBIGUOUSCOMMAND, "Ambiguous abbreviation and too many possible matches."); return MOD_RES_DENY; } @@ -67,7 +73,7 @@ class ModuleAbbreviation : public Module /* Ambiguous command, list the matches */ if (!matchlist.empty()) { - user->WriteNumeric(420, InspIRCd::Format("Ambiguous abbreviation, possible matches: %s%s", foundcommand.c_str(), matchlist.c_str())); + user->WriteNumeric(ERR_AMBIGUOUSCOMMAND, InspIRCd::Format("Ambiguous abbreviation, possible matches: %s%s", foundcommand.c_str(), matchlist.c_str())); return MOD_RES_DENY; } |
