summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 17:20:11 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 17:20:11 +0000
commitd1a146aa753e56b0ae68be16d48567dcd13cc8fc (patch)
treeb0304641c02776f23bd57f02224280b133d95da5 /src/inspircd_io.cpp
parent335ab9f04137a79711e6aeac9d0eacd928204af5 (diff)
Made it compile :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3635 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp7
1 files 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<std::string>::iterator t = module_names.begin(); t != module_names.end(); t++)
+ for (std::vector<std::string>::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},