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/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index cf1887ce9..1c13ac4ef 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1121,7 +1121,7 @@ bool User::ChangeDisplayedHost(const std::string& shost) FOREACH_MOD(OnChangeHost, (this,shost)); - this->dhost.assign(shost, 0, 64); + this->dhost.assign(shost, 0, ServerInstance->Config->Limits.MaxHost); this->InvalidateCache(); if (IS_LOCAL(this)) -- cgit v1.3.1-10-gc9f91