]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sethost.cpp
core_hostname_lookup: find answer record of the correct type instead of assuming...
[user/henk/code/inspircd.git] / src / modules / m_sethost.cpp
index ee0fc01e4cb6fc58a77e84cb40e3e32ed55934ca..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;