diff options
| author | 2018-04-22 14:31:28 +0100 | |
|---|---|---|
| committer | 2018-04-22 14:35:38 +0100 | |
| commit | 48a400f2e068527b338ceecf8ed1dde2da971ca9 (patch) | |
| tree | 93375f28863762b4190a5e4cedfdfa44d6c3dab6 /src/modules/m_cap.cpp | |
| parent | Replace ERR_{NOCTCPALLOWED,WORDFILTERED} with ERR_CANNOTSENDTOCHAN. (diff) | |
| download | inspircd++-48a400f2e068527b338ceecf8ed1dde2da971ca9.tar.gz inspircd++-48a400f2e068527b338ceecf8ed1dde2da971ca9.tar.bz2 inspircd++-48a400f2e068527b338ceecf8ed1dde2da971ca9.zip | |
Move a bunch of optional module numerics to the module source file.
Diffstat (limited to 'src/modules/m_cap.cpp')
| -rw-r--r-- | src/modules/m_cap.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp index 86de15d95..603c7e235 100644 --- a/src/modules/m_cap.cpp +++ b/src/modules/m_cap.cpp @@ -21,6 +21,12 @@ #include "modules/reload.h" #include "modules/cap.h" +enum +{ + // From IRCv3 capability-negotiation-3.1. + ERR_INVALIDCAPCMD = 232 +}; + namespace Cap { class ManagerImpl; @@ -399,7 +405,7 @@ class CommandCap : public SplitCommand } else { - user->WriteNumeric(ERR_INVALIDCAPSUBCOMMAND, subcommand.empty() ? "*" : subcommand, "Invalid CAP subcommand"); + user->WriteNumeric(ERR_INVALIDCAPCMD, subcommand.empty() ? "*" : subcommand, "Invalid CAP subcommand"); return CMD_FAILURE; } |
