]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sethost.cpp
m_ssl_openssl Implement custom BIO methods that call SocketEngine methods
[user/henk/code/inspircd.git] / src / modules / m_sethost.cpp
index 80953ee6f8102d76d55bc05072ed189d3ffa1892..75dbe1c6a6c00f84a4ce09661b720c4327d60210 100644 (file)
@@ -46,7 +46,7 @@ class CommandSethost : public Command
                        }
                }
 
-               if (len > 64)
+               if (len > ServerInstance->Config->Limits.MaxHost)
                {
                        user->WriteNotice("*** SETHOST: Host too long");
                        return CMD_FAILURE;
@@ -74,11 +74,6 @@ class ModuleSetHost : public Module
        {
        }
 
-       void init() CXX11_OVERRIDE
-       {
-               ServerInstance->Modules->AddService(cmd);
-       }
-
        void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                std::string hmap = ServerInstance->Config->ConfValue("hostname")->getString("charmap", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-_/0123456789");