From d1a146aa753e56b0ae68be16d48567dcd13cc8fc Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 10 Mar 2006 17:20:11 +0000 Subject: Made it compile :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3635 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 46dae3fbf..d167c5034 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -417,7 +417,7 @@ bool InitModule(const char* tag) new_module_names.clear(); added_modules.clear(); removed_modules.clear(); - for (std::vector::iterator t = module_names.begin(); t != module_names.end(); t++) + for (std::vector::iterator t = Config->module_names.begin(); t != Config->module_names.end(); t++) { old_module_names.push_back(*t); } @@ -474,7 +474,7 @@ bool DoMaxBans(const char* tag, char** entries, void** values, int* types) { char* channel = (char*)values[0]; int* limit = (int*)values[1]; - Config->maxbans[channel] = limit; + Config->maxbans[channel] = *limit; return true; } @@ -486,7 +486,6 @@ bool DoneMaxBans(const char* tag) void ServerConfig::Read(bool bail, userrec* user) { char debug[MAXBUF]; - char Value[MAXBUF]; char dataline[1024]; std::stringstream errstr; @@ -541,7 +540,7 @@ void ServerConfig::Read(bool bail, userrec* user) {"banlist", {"chan", "limit", NULL}, {DT_CHARPTR, DT_INTEGER}, - InitMaxBans, DoMaxBans, DoneLastBans}, + InitMaxBans, DoMaxBans, DoneMaxBans}, {"module", {"name", NULL}, -- cgit v1.2.3