summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 00:36:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 00:36:23 +0000
commit54c38a32e58fc3b6b26c8816161fb9e03e635e77 (patch)
tree44516bf5807c842efa9ca857ba746a950fd3c28d /src/inspircd_io.cpp
parent151dec838bb5308f6ad0aaa092b1c4e1b1181cba (diff)
Move vars to top of function
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3616 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp14
1 files changed, 5 insertions, 9 deletions
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++)
{