summaryrefslogtreecommitdiff
path: root/src/modules/m_remove.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 00:15:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 00:15:07 +0000
commit66098d307c036997e51eaea21724615e27fdc3e9 (patch)
treec2e41b2e2f86efdfca62545c4e61ebae3ed38fe5 /src/modules/m_remove.cpp
parentd0b4bb3811458aa335857514e4cbb95d5c84f433 (diff)
(Bigger than it looks, i did this with perl inplace edit) -- commands now take an InspIRCd* param to their constructor, so that you can do stuff within them without an extern
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4862 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_remove.cpp')
-rw-r--r--src/modules/m_remove.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp
index a1533d64f..58f64c83d 100644
--- a/src/modules/m_remove.cpp
+++ b/src/modules/m_remove.cpp
@@ -207,7 +207,7 @@ class RemoveBase
class cmd_remove : public command_t, public RemoveBase
{
public:
- cmd_remove(bool& snk) : command_t("REMOVE", 0, 2), RemoveBase(snk)
+ cmd_remove(InspIRCd* Instance, bool& snk) : command_t(Instance, "REMOVE", 0, 2), RemoveBase(snk)
{
this->source = "m_remove.so";
syntax = "<nick> <channel> [<reason>]";
@@ -222,7 +222,7 @@ class cmd_remove : public command_t, public RemoveBase
class cmd_fpart : public command_t, public RemoveBase
{
public:
- cmd_fpart(bool& snk) : command_t("FPART", 0, 2), RemoveBase(snk)
+ cmd_fpart(InspIRCd* Instance, bool& snk) : command_t(Instance, "FPART", 0, 2), RemoveBase(snk)
{
this->source = "m_remove.so";
syntax = "<channel> <nick> [<reason>]";
@@ -245,8 +245,8 @@ class ModuleRemove : public Module
ModuleRemove(InspIRCd* Me)
: Module::Module(Me)
{
- mycommand = new cmd_remove(supportnokicks);
- mycommand2 = new cmd_fpart(supportnokicks);
+ mycommand = new cmd_remove(ServerInstance, supportnokicks);
+ mycommand2 = new cmd_fpart(ServerInstance, supportnokicks);
ServerInstance->AddCommand(mycommand);
ServerInstance->AddCommand(mycommand2);
OnRehash("");