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_sethost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_sethost.cpp') diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index ee0fc01e4..75dbe1c6a 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -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; -- cgit v1.3.1-10-gc9f91