From d0e4773d63d575d416d6c9a1804635b66e2ff579 Mon Sep 17 00:00:00 2001 From: peavey Date: Tue, 15 Apr 2008 01:58:49 +0000 Subject: Fixes for ValidateHostname git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9511 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/configreader.cpp b/src/configreader.cpp index 20c360303..2b7555a01 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -344,7 +344,8 @@ bool ValidateServerName(ServerConfig* conf, const char*, const char*, ValueItem std::string moo = std::string(data.GetString()).append("."); data.Set(moo.c_str()); } - return ValidateHostname(conf, "server", "name", data); + conf->ValidateHostname(data.GetString(), "server", "name"); + return true; } bool ValidateNetBufferSize(ServerConfig* conf, const char*, const char*, ValueItem &data) -- cgit v1.2.3