From 2fe61d7d9519056705f1eeb2842a2a0042010172 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 15 Apr 2008 01:37:12 +0000 Subject: Chain ValidateServerName onto ValidateHostname so that the servername gets hostname validity checks (prevents servernames with spaces etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9510 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configreader.cpp b/src/configreader.cpp index c8a92c3bc..20c360303 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -344,7 +344,7 @@ bool ValidateServerName(ServerConfig* conf, const char*, const char*, ValueItem std::string moo = std::string(data.GetString()).append("."); data.Set(moo.c_str()); } - return true; + return ValidateHostname(conf, "server", "name", data); } bool ValidateNetBufferSize(ServerConfig* conf, const char*, const char*, ValueItem &data) -- cgit v1.2.3