diff options
Diffstat (limited to 'src/modules/m_knock.cpp')
-rw-r--r-- | src/modules/m_knock.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index 8be05fd53..171893fd7 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -21,6 +21,12 @@ #include "inspircd.h" +enum +{ + // From UnrealIRCd. + ERR_CANNOTKNOCK = 480 +}; + /** Handles the /KNOCK command */ class CommandKnock : public Command @@ -57,7 +63,7 @@ class CommandKnock : public Command if (c->IsModeSet(noknockmode)) { - user->WriteNumeric(480, InspIRCd::Format("Can't KNOCK on %s, +K is set.", c->name.c_str())); + user->WriteNumeric(ERR_CANNOTKNOCK, InspIRCd::Format("Can't KNOCK on %s, +K is set.", c->name.c_str())); return CMD_FAILURE; } |