diff options
Diffstat (limited to 'src/modules/m_opermotd.cpp')
-rw-r--r-- | src/modules/m_opermotd.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index fcb5f1a69..9caa73d91 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -58,7 +58,7 @@ class CommandOpermotd : public Command class ModuleOpermotd : public Module { - CommandOpermotd* mycommand; + CommandOpermotd cmd; bool onoper; public: @@ -78,11 +78,10 @@ class ModuleOpermotd : public Module } ModuleOpermotd(InspIRCd* Me) - : Module(Me) + : Module(Me), cmd(Me) { opermotd = NULL; - mycommand = new CommandOpermotd(ServerInstance); - ServerInstance->AddCommand(mycommand); + ServerInstance->AddCommand(&cmd); opermotd = new FileReader(ServerInstance); LoadOperMOTD(); Implementation eventlist[] = { I_OnRehash, I_OnOper }; |