From 54c38a32e58fc3b6b26c8816161fb9e03e635e77 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 10 Mar 2006 00:36:23 +0000 Subject: Move vars to top of function git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3616 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index cb34611af..8daa1c19f 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -331,6 +331,11 @@ bool ValidateRules(const char* tag, const char* value, void* data) void ServerConfig::Read(bool bail, userrec* user) { char debug[MAXBUF]; + char CM1[MAXBUF],CM2[MAXBUF]; + char ServName[MAXBUF],Value[MAXBUF]; + char dataline[1024]; + ConnectClass c; + std::stringstream errstr; static InitialConfig Values[] = { {"options", "softlimit", &this->SoftLimit, DT_INTEGER, ValidateSoftLimit}, @@ -364,12 +369,6 @@ void ServerConfig::Read(bool bail, userrec* user) {"options", "tempdir", &this->TempDir, DT_CHARPTR, ValidateTempDir}, {NULL} }; - - // - char ServName[MAXBUF],Value[MAXBUF]; - - ConnectClass c; - std::stringstream errstr; include_stack.clear(); @@ -385,8 +384,6 @@ void ServerConfig::Read(bool bail, userrec* user) } else { - char dataline[1024]; - if (user) { WriteServ(user->fd,"NOTICE %s :There were errors in the configuration file:",user->nick); @@ -533,7 +530,6 @@ void ServerConfig::Read(bool bail, userrec* user) } maxbans.clear(); - char CM1[MAXBUF],CM2[MAXBUF]; for (int count = 0; count < Config->ConfValueEnum("banlist",&Config->config_f); count++) { -- cgit v1.2.3