From ebe5b201aab71cf2ead1e068889be736314fbb73 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 3 Apr 2013 19:10:18 +0200 Subject: Migrate u_listmode.h into the core, change +b to use it --- src/configreader.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/configreader.cpp') 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 #include "xline.h" +#include "listmode.h" #include "exitcodes.h" #include "configparser.h" #include @@ -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(" 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(*ban)->DoRehash(); Config->ApplyDisabledCommands(Config->DisabledCommands); User* user = ServerInstance->FindNick(TheUserUID); FOREACH_MOD(I_OnRehash, OnRehash(user)); -- cgit v1.3.1-10-gc9f91