]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chghost.cpp
m_spanningtree Add ServerCommand::ExtractTS() to convert string to raw TS
[user/henk/code/inspircd.git] / src / modules / m_chghost.cpp
index eefac00f101743f0ec41c00f44c2cfa0efefb221..3a637f9d0f7d6c8a99d3b166defed713dce33a0f 100644 (file)
@@ -39,7 +39,7 @@ class CommandChghost : public Command
        {
                const char* x = parameters[1].c_str();
 
-               if (parameters[1].length() > 63)
+               if (parameters[1].length() > ServerInstance->Config->Limits.MaxHost)
                {
                        user->WriteNotice("*** CHGHOST: Host too long");
                        return CMD_FAILURE;