summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cap.cpp8
-rw-r--r--src/modules/m_jumpserver.cpp6
-rw-r--r--src/modules/m_knock.cpp6
-rw-r--r--src/modules/m_operchans.cpp6
-rw-r--r--src/modules/m_showfile.cpp9
-rw-r--r--src/modules/m_sslmodes.cpp3
6 files changed, 35 insertions, 3 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;
}
diff --git a/src/modules/m_jumpserver.cpp b/src/modules/m_jumpserver.cpp
index 3104a0c55..f94fc31e6 100644
--- a/src/modules/m_jumpserver.cpp
+++ b/src/modules/m_jumpserver.cpp
@@ -22,6 +22,12 @@
#include "inspircd.h"
#include "modules/ssl.h"
+enum
+{
+ // From ircd-ratbox.
+ RPL_REDIR = 10
+};
+
/** Handle /JUMPSERVER
*/
class CommandJumpserver : public Command
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp
index 171893fd7..66abda851 100644
--- a/src/modules/m_knock.cpp
+++ b/src/modules/m_knock.cpp
@@ -24,7 +24,11 @@
enum
{
// From UnrealIRCd.
- ERR_CANNOTKNOCK = 480
+ ERR_CANNOTKNOCK = 480,
+
+ // From ircd-ratbox.
+ ERR_CHANOPEN = 713,
+ ERR_KNOCKONCHAN = 714
};
/** Handles the /KNOCK command
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index 0b074ebab..f0812ce27 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -22,6 +22,12 @@
#include "inspircd.h"
+enum
+{
+ // From UnrealIRCd.
+ ERR_CANTJOINOPERSONLY = 520
+};
+
class OperChans : public SimpleChannelModeHandler
{
public:
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp
index b04b699c4..2d1354aff 100644
--- a/src/modules/m_showfile.cpp
+++ b/src/modules/m_showfile.cpp
@@ -19,6 +19,15 @@
#include "inspircd.h"
+enum
+{
+ // From UnrealIRCd.
+ RPL_RULES = 232,
+ RPL_RULESTART = 308,
+ RPL_RULESEND = 309,
+ ERR_NORULES = 434
+};
+
class CommandShowFile : public Command
{
enum Method
diff --git a/src/modules/m_sslmodes.cpp b/src/modules/m_sslmodes.cpp
index 688fe70ce..dc0063d29 100644
--- a/src/modules/m_sslmodes.cpp
+++ b/src/modules/m_sslmodes.cpp
@@ -28,7 +28,8 @@
enum
{
// From UnrealIRCd.
- ERR_SECUREONLYCHAN = 489
+ ERR_SECUREONLYCHAN = 489,
+ ERR_ALLMUSTSSL = 490
};
namespace