summaryrefslogtreecommitdiff
path: root/src/modules/m_opermotd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_opermotd.cpp')
-rw-r--r--src/modules/m_opermotd.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index 9caa73d91..e3dafeff3 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -43,9 +43,8 @@ CmdResult ShowOperMOTD(User* user)
class CommandOpermotd : public Command
{
public:
- CommandOpermotd (InspIRCd* Instance) : Command(Instance,"OPERMOTD", "o", 0)
+ CommandOpermotd (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"OPERMOTD", "o", 0)
{
- this->source = "m_opermotd.so";
syntax = "[<servername>]";
}
@@ -78,7 +77,7 @@ class ModuleOpermotd : public Module
}
ModuleOpermotd(InspIRCd* Me)
- : Module(Me), cmd(Me)
+ : Module(Me), cmd(Me, this)
{
opermotd = NULL;
ServerInstance->AddCommand(&cmd);