summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 10:24:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-26 10:24:04 +0000
commit30084fbe7eaa1269aa052d16eea8ddabbc820d94 (patch)
treeeae47afde0fa11477e4bc982a232bd7a62fcfcdd /src/inspircd_io.cpp
parent786f3135328228fee87d4557a29045823c15eec5 (diff)
Lowercase the servername automatically
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3326 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index aee8abe88..8be91e230 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -239,6 +239,8 @@ void ServerConfig::Read(bool bail, userrec* user)
ConfValue("options","hidewhois",0,Config->HideWhoisServer,&Config->config_f);
ConfValue("options","tempdir",0,Config->TempDir,&Config->config_f);
+ strlower(Config->ServerName);
+
if (!*Config->TempDir)
strlcpy(Config->TempDir,"/tmp",1024);
Config->HideSplits = ((*HS == 'y') || (*HS == 'Y') || (*HS == '1') || (*HS == 't') || (*HS == 'T'));