diff options
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 |