From 66098d307c036997e51eaea21724615e27fdc3e9 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 11 Aug 2006 00:15:07 +0000 Subject: (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 --- src/modules/m_park.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/m_park.cpp') diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp index 41f39f1d4..798c4edd8 100644 --- a/src/modules/m_park.cpp +++ b/src/modules/m_park.cpp @@ -61,7 +61,7 @@ parkedinfo pi; class cmd_park : public command_t { public: - cmd_park () : command_t("PARK", 0, 0) + cmd_park (InspIRCd* Instance) : command_t(Instance,"PARK", 0, 0) { this->source = "m_park.so"; } @@ -106,7 +106,7 @@ class cmd_park : public command_t class cmd_parkstats : public command_t { public: - cmd_parkstats () : command_t("PARKSTATS", 'o', 0) + cmd_parkstats (InspIRCd* Instance) : command_t(Instance,"PARKSTATS", 'o', 0) { this->source = "m_park.so"; } @@ -122,7 +122,7 @@ class cmd_parkstats : public command_t class cmd_unpark : public command_t { public: - cmd_unpark () : command_t("UNPARK", 0, 2) + cmd_unpark (InspIRCd* Instance) : command_t(Instance,"UNPARK", 0, 2) { this->source = "m_park.so"; syntax = " "; @@ -232,9 +232,9 @@ class ModulePark : public Module pinfo.clear(); this->ReadSettings(); - cmd1 = new cmd_park(); - cmd2 = new cmd_unpark(); - cmd3 = new cmd_parkstats(); + cmd1 = new cmd_park(ServerInstance); + cmd2 = new cmd_unpark(ServerInstance); + cmd3 = new cmd_parkstats(ServerInstance); ServerInstance->AddCommand(cmd1); ServerInstance->AddCommand(cmd2); ServerInstance->AddCommand(cmd3); -- cgit v1.2.3