]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_knock.cpp
Fix disabling the GeoIP extban in m_geoip.
[user/henk/code/inspircd.git] / src / modules / m_knock.cpp
index 8be05fd537e84533e8ec7eb7e0aab22f5df5967b..171893fd7238379c3ce576cfc96f64459ba60b51 100644 (file)
 
 #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;
                }