From 14c612eef9aeb4610d45e7a7f59eb19ce5cb4ab4 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 14:03:56 +0000 Subject: Moved readconfig to serverconfig class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2408 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd_io.h | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) (limited to 'include') diff --git a/include/inspircd_io.h b/include/inspircd_io.h index e5447ecb3..c067de059 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -67,38 +67,8 @@ class ServerConfig char PID[1024]; std::stringstream config_f; - ServerConfig() - { - *ServerName = '\0'; - *Network = '\0'; - *ServerDesc = '\0'; - *AdminName = '\0'; - *AdminEmail = '\0'; - *AdminNick = '\0'; - *diepass = '\0'; - *restartpass = '\0'; - *motd = '\0'; - *rules = '\0'; - *PrefixQuit = '\0'; - *DieValue = '\0'; - *DNSServer = '\0'; - *ModPath = '\0'; - *MyExecutable = '\0'; - *DisabledCommands = '\0'; - *PID = '\0'; - log_file = NULL; - nofork = false; - unlimitcore = false; - AllowHalfop = true; - dns_timeout = 5; - NetBufferSize = 10240; - SoftLimit = MAXCLIENTS; - MaxConn = SOMAXCONN; - MaxWhoResults = 100; - debugging = 0; - LogLevel = DEFAULT; - DieDelay = 5; - } + ServerConfig(); + void Read(bool bail, userrec* user); }; -- cgit v1.2.3