aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_sethost.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2014-03-06 21:43:36 +0000
committerGravatar Attila Molnar2014-03-08 13:01:09 +0100
commitf2db4b743f0df9b9e588979fd0fcf2815e54af44 (patch)
treeaaef011a92d187cb1e7a81355de18e2f58d8815e /src/modules/m_sethost.cpp
parentFix m_permchannels not prepending the path when reading the config. (diff)
Make the maximum hostname length configurable in the config.
Diffstat (limited to 'src/modules/m_sethost.cpp')
-rw-r--r--src/modules/m_sethost.cpp2
1 files changed, 1 insertions, 1 deletions
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;