]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_mlock.cpp
Move the <disabled> tag out of the core to a new module.
[user/henk/code/inspircd.git] / src / modules / m_mlock.cpp
index 2a0410bedcacd3e6fc84da2048f379caa7508d1e..85787ae9644b2e6c2c21983141c9a8fb3ceea46c 100644 (file)
 
 #include "inspircd.h"
 
+enum
+{
+       // From Charybdis.
+       ERR_MLOCKRESTRICTED = 742
+};
+
 class ModuleMLock : public Module
 {
        StringExtItem mlock;
@@ -50,7 +56,7 @@ class ModuleMLock : public Module
                std::string::size_type p = mlock_str->find(mode);
                if (p != std::string::npos)
                {
-                       source->WriteNumeric(742, channel->name, mode, *mlock_str, "MODE cannot be set due to channel having an active MLOCK restriction policy");
+                       source->WriteNumeric(ERR_MLOCKRESTRICTED, channel->name, mode, *mlock_str, "MODE cannot be set due to channel having an active MLOCK restriction policy");
                        return MOD_RES_DENY;
                }