diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-04-03 19:10:18 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-04-08 23:13:24 +0200 |
commit | ebe5b201aab71cf2ead1e068889be736314fbb73 (patch) | |
tree | 33bc1cc227073304f5e25731fa35a60cfd2712a3 /src/configreader.cpp | |
parent | 0ce252f05ced1a0dddfc9c353d68007a3faba239 (diff) |
Migrate u_listmode.h into the core, change +b to use it
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r-- | src/configreader.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index f440fca26..804463309 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -25,6 +25,7 @@ #include "inspircd.h" #include <fstream> #include "xline.h" +#include "listmode.h" #include "exitcodes.h" #include "configparser.h" #include <iostream> @@ -568,16 +569,6 @@ void ServerConfig::Fill() ulines[assign(server)] = tag->getBool("silent"); } - tags = ConfTags("banlist"); - for(ConfigIter i = tags.first; i != tags.second; ++i) - { - ConfigTag* tag = i->second; - std::string chan; - if (!tag->readString("chan", chan)) - throw CoreException("<banlist> tag missing chan at " + tag->getTagLocation()); - maxbans[chan] = tag->getInt("limit"); - } - ReadXLine(this, "badip", "ipmask", ServerInstance->XLines->GetFactory("Z")); ReadXLine(this, "badnick", "nick", ServerInstance->XLines->GetFactory("Q")); ReadXLine(this, "badhost", "host", ServerInstance->XLines->GetFactory("K")); @@ -936,7 +927,8 @@ void ConfigReaderThread::Finish() ServerInstance->XLines->CheckELines(); ServerInstance->XLines->ApplyLines(); ServerInstance->Res->Rehash(); - ServerInstance->ResetMaxBans(); + ModeReference ban(NULL, "ban"); + static_cast<ListModeBase*>(*ban)->DoRehash(); Config->ApplyDisabledCommands(Config->DisabledCommands); User* user = ServerInstance->FindNick(TheUserUID); FOREACH_MOD(I_OnRehash, OnRehash(user)); |