X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_opermodes.cpp;h=d4b873918e9019e953a8337f28920908cd5119d2;hb=95c1fb9bdd5f93cf4f8306a7b8ae9ca098aade1a;hp=1efefe75344d01ac675e63162380d277c0c90e0a;hpb=0da6b3a13def40e8fd002b9fc60f955467f6372d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index 1efefe753..d4b873918 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -23,11 +23,10 @@ class ModuleModesOnOper : public Module ConfigReader *Conf; public: - ModuleModesOnOper(InspIRCd* Me) - : Module(Me) - { + ModuleModesOnOper() + { - Conf = new ConfigReader(ServerInstance); + Conf = new ConfigReader; Implementation eventlist[] = { I_OnPostOper, I_OnRehash }; ServerInstance->Modules->Attach(eventlist, this, 2); } @@ -36,7 +35,7 @@ class ModuleModesOnOper : public Module virtual void OnRehash(User* user) { delete Conf; - Conf = new ConfigReader(ServerInstance); + Conf = new ConfigReader; } virtual ~ModuleModesOnOper() @@ -46,7 +45,7 @@ class ModuleModesOnOper : public Module virtual Version GetVersion() { - return Version("$Id$", VF_VENDOR, API_VERSION); + return Version("Sets (and unsets) modes on opers when they oper up", VF_VENDOR); } virtual void OnPostOper(User* user, const std::string &opertype, const std::string &opername)