diff options
| author | 2008-04-15 01:37:12 +0000 | |
|---|---|---|
| committer | 2008-04-15 01:37:12 +0000 | |
| commit | 2fe61d7d9519056705f1eeb2842a2a0042010172 (patch) | |
| tree | 0a3b4e2a24e48862c4f62bd1d5d9b32cb5c3fe24 /src/configreader.cpp | |
| parent | Deprecate a few more config options. (diff) | |
| download | inspircd++-2fe61d7d9519056705f1eeb2842a2a0042010172.tar.gz inspircd++-2fe61d7d9519056705f1eeb2842a2a0042010172.tar.bz2 inspircd++-2fe61d7d9519056705f1eeb2842a2a0042010172.zip | |
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/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 2 |
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) |
