From f2db4b743f0df9b9e588979fd0fcf2815e54af44 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Thu, 6 Mar 2014 21:43:36 +0000 Subject: Make the maximum hostname length configurable in the config. --- src/modules/m_chghost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_chghost.cpp') diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index eefac00f1..3a637f9d0 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -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; -- cgit v1.3.1-10-gc9f91