summaryrefslogtreecommitdiff
path: root/src/inspircd_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r--src/inspircd_io.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp
index e47cf9dda..477897b0b 100644
--- a/src/inspircd_io.cpp
+++ b/src/inspircd_io.cpp
@@ -59,6 +59,7 @@ ServerConfig::ServerConfig()
MaxWhoResults = 100;
debugging = 0;
LogLevel = DEFAULT;
+ maxbans.clear();
}
void ServerConfig::ClearStack()
@@ -417,6 +418,14 @@ void ServerConfig::Read(bool bail, userrec* user)
Config->ulines.push_back(ServName);
}
}
+ maxbans.clear();
+ char CM[MAXBUF],CM2[MAXBUF];
+ for (int count = 0; count < Config->ConfValueEnum("banlist",&Config->config_f); count++)
+ {
+ Config->ConfValue("banlist","chan",count,CM1,&Config->config_f);
+ Config->ConfValue("banlist","limit",count,CM2,&Config->config_f);
+ maxbans[CM1] = atoi(CM2);
+ }
ReadClassesAndTypes();
log(DEFAULT,"Reading K lines,Q lines and Z lines from config...");
read_xline_defaults();