diff options
Diffstat (limited to 'src/modules/m_opermotd.cpp')
-rw-r--r-- | src/modules/m_opermotd.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index 418c36b0c..411cd42c8 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -63,7 +63,7 @@ class ModuleOpermotd : public Module void LoadOperMOTD() { - ConfigReader* conf = new ConfigReader(ServerInstance); + ConfigReader* conf = new ConfigReader; std::string filename; filename = conf->ReadValue("opermotd","file",0); if (opermotd) @@ -71,17 +71,17 @@ class ModuleOpermotd : public Module delete opermotd; opermotd = NULL; } - opermotd = new FileReader(ServerInstance, filename); + opermotd = new FileReader(filename); onoper = conf->ReadFlag("opermotd","onoper","yes",0); delete conf; } - ModuleOpermotd(InspIRCd* Me) - : Module(Me), cmd(this) + ModuleOpermotd() + : cmd(this) { opermotd = NULL; ServerInstance->AddCommand(&cmd); - opermotd = new FileReader(ServerInstance); + opermotd = new FileReader; LoadOperMOTD(); Implementation eventlist[] = { I_OnRehash, I_OnOper }; ServerInstance->Modules->Attach(eventlist, this, 2); |