From 30084fbe7eaa1269aa052d16eea8ddabbc820d94 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Feb 2006 10:24:04 +0000 Subject: Lowercase the servername automatically git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3326 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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')); -- cgit v1.2.3