summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-15 01:58:49 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-15 01:58:49 +0000
commitd0e4773d63d575d416d6c9a1804635b66e2ff579 (patch)
treefaccfd390f37dee457b87680c544765f1c3f5192 /src
parent2fe61d7d9519056705f1eeb2842a2a0042010172 (diff)
Fixes for ValidateHostname
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9511 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp3
1 files changed, 2 insertions, 1 deletions
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)