X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_blockamsg.cpp;h=7c4d6341958da3d65f903fe112a6dff9e70e3b15;hb=7107ec12d8640d35cfe3d5002db1bc1deb33625d;hp=c9d20e3ef6b549e5fb337977c3bb0e93d6485be5;hpb=7d93921aabd9c608821baec8a871aff844dfae49;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_blockamsg.cpp b/src/modules/m_blockamsg.cpp index c9d20e3ef..7c4d63419 100644 --- a/src/modules/m_blockamsg.cpp +++ b/src/modules/m_blockamsg.cpp @@ -45,7 +45,7 @@ class ModuleBlockAmsg : public Module SimpleExtItem blockamsg; public: - ModuleBlockAmsg(InspIRCd* Me) : Module(Me), blockamsg("blockamsg", this) + ModuleBlockAmsg() : blockamsg("blockamsg", this) { this->OnRehash(NULL); Extensible::Register(&blockamsg); @@ -65,7 +65,7 @@ class ModuleBlockAmsg : public Module virtual void OnRehash(User* user) { - ConfigReader Conf(ServerInstance); + ConfigReader Conf; ForgetDelay = Conf.ReadInteger("blockamsg", "delay", 0, false);