summaryrefslogtreecommitdiff
path: root/src/modules/m_globalload.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:48:48 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:48:48 +0000
commit24731c63b6320be22f7b3220236271fa7476b975 (patch)
tree615959bfd36dd30bc5c067c4501dbfb8a2e8cb8b /src/modules/m_globalload.cpp
parent79f9faeec84fbcb704b45811b9851148ab1cb20b (diff)
Add Module* creator to Command and ModeHandler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_globalload.cpp')
-rw-r--r--src/modules/m_globalload.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index a3e314846..72c8a14d3 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -20,9 +20,8 @@
class CommandGloadmodule : public Command
{
public:
- CommandGloadmodule (InspIRCd* Instance) : Command(Instance,"GLOADMODULE", "o", 1)
+ CommandGloadmodule (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"GLOADMODULE", "o", 1)
{
- this->source = "m_globalload.so";
syntax = "<modulename> [servermask]";
TRANSLATE3(TR_TEXT, TR_TEXT, TR_END);
}
@@ -55,9 +54,8 @@ class CommandGloadmodule : public Command
class CommandGunloadmodule : public Command
{
public:
- CommandGunloadmodule (InspIRCd* Instance) : Command(Instance,"GUNLOADMODULE", "o", 1)
+ CommandGunloadmodule (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"GUNLOADMODULE", "o", 1)
{
- this->source = "m_globalload.so";
syntax = "<modulename> [servermask]";
}
@@ -89,9 +87,8 @@ class CommandGunloadmodule : public Command
class CommandGreloadmodule : public Command
{
public:
- CommandGreloadmodule (InspIRCd* Instance) : Command(Instance, "GRELOADMODULE", "o", 1)
+ CommandGreloadmodule (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator, "GRELOADMODULE", "o", 1)
{
- this->source = "m_globalload.so";
syntax = "<modulename> [servermask]";
}
@@ -131,7 +128,7 @@ class ModuleGlobalLoad : public Module
public:
ModuleGlobalLoad(InspIRCd* Me)
- : Module(Me), cmd1(Me), cmd2(Me), cmd3(Me)
+ : Module(Me), cmd1(Me, this), cmd2(Me, this), cmd3(Me, this)
{
ServerInstance->AddCommand(&cmd1);
ServerInstance->AddCommand(&cmd2);