diff options
author | Peter Powell <petpow@saberuk.com> | 2018-01-27 12:24:47 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-02-02 10:43:32 +0000 |
commit | c2376ac6f49ab01794a21a3e9bb7c1b3c5a1c2d8 (patch) | |
tree | 48945089a65ba91aa1414821b60f88fae1592c2a /src/modules/m_namedmodes.cpp | |
parent | d5a6054948502625d7f0c235f6faaeea58734de5 (diff) |
Add names for a bunch of numerics.
Diffstat (limited to 'src/modules/m_namedmodes.cpp')
-rw-r--r-- | src/modules/m_namedmodes.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/modules/m_namedmodes.cpp b/src/modules/m_namedmodes.cpp index 5c280b355..73c5cb521 100644 --- a/src/modules/m_namedmodes.cpp +++ b/src/modules/m_namedmodes.cpp @@ -19,9 +19,16 @@ #include "inspircd.h" +enum +{ + // InspIRCd-specific. + RPL_ENDOFPROPLIST = 960, + RPL_PROPLIST = 961 +}; + static void DisplayList(LocalUser* user, Channel* channel) { - Numeric::ParamBuilder<1> numeric(user, 961); + Numeric::ParamBuilder<1> numeric(user, RPL_PROPLIST); numeric.AddStatic(channel->name); const ModeParser::ModeHandlerMap& mhs = ServerInstance->Modes->GetModes(MODETYPE_CHANNEL); @@ -40,7 +47,7 @@ static void DisplayList(LocalUser* user, Channel* channel) } } numeric.Flush(); - user->WriteNumeric(960, channel->name, "End of mode list"); + user->WriteNumeric(RPL_ENDOFPROPLIST, channel->name, "End of mode list"); } class CommandProp : public SplitCommand |