summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-15 01:37:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-15 01:37:12 +0000
commit2fe61d7d9519056705f1eeb2842a2a0042010172 (patch)
tree0a3b4e2a24e48862c4f62bd1d5d9b32cb5c3fe24 /src
parenta0b80f4e0d8f194e6829d29b4b033f8899705569 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
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)