X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_blockcaps.cpp;h=c3c8b2297bab151937b7ba073d08a92ca48faa51;hb=c202dea024542b9c6c6b771bb9a3a081d9eacdc5;hp=f80c6d16dc2c53bef549b4767027794cfa431fa7;hpb=86f650e6b8c969b31fae65ea1143644723279b82;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_blockcaps.cpp b/src/modules/m_blockcaps.cpp index f80c6d16d..c3c8b2297 100644 --- a/src/modules/m_blockcaps.cpp +++ b/src/modules/m_blockcaps.cpp @@ -45,7 +45,6 @@ public: void init() CXX11_OVERRIDE { - OnRehash(NULL); ServerInstance->Modules->AddService(bc); } @@ -54,11 +53,6 @@ public: tokens["EXTBAN"].push_back('B'); } - void OnRehash(User* user) CXX11_OVERRIDE - { - ReadConf(); - } - ModResult OnUserPreMessage(User* user, void* dest, int target_type, std::string& text, char status, CUList& exempt_list, MessageType msgtype) CXX11_OVERRIDE { if (target_type == TYPE_CHANNEL) @@ -101,7 +95,7 @@ public: return MOD_RES_PASSTHRU; } - void ReadConf() + void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { ConfigTag* tag = ServerInstance->Config->ConfValue("blockcaps"); percent = tag->getInt("percent", 100, 1, 100);