diff options
Diffstat (limited to 'src/modules/m_operlevels.cpp')
-rw-r--r-- | src/modules/m_operlevels.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/m_operlevels.cpp b/src/modules/m_operlevels.cpp index 979ce8654..b992b33b6 100644 --- a/src/modules/m_operlevels.cpp +++ b/src/modules/m_operlevels.cpp @@ -19,10 +19,9 @@ class ModuleOperLevels : public Module private: ConfigReader* conf; public: - ModuleOperLevels(InspIRCd* Me) - : Module(Me) - { - conf = new ConfigReader(ServerInstance); + ModuleOperLevels() + { + conf = new ConfigReader; Implementation eventlist[] = { I_OnRehash, I_OnKill }; ServerInstance->Modules->Attach(eventlist, this, 2); } @@ -36,7 +35,7 @@ class ModuleOperLevels : public Module virtual void OnRehash(User* user) { delete conf; - conf = new ConfigReader(ServerInstance); + conf = new ConfigReader; } virtual Version GetVersion() |