]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_check.cpp
All modules which implement simplemodes (no parameters, not a list mode) can now...
[user/henk/code/inspircd.git] / src / modules / m_check.cpp
index 692a7113a0a9c9f44e2f35d3703a2b54f20fcf3a..d097934891876be871135ae6ac6a21a738f8af90 100644 (file)
@@ -19,19 +19,17 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "commands.h"
 #include "inspircd.h"
-#include "helperfuncs.h"
 #include "wildcard.h"
 
 /* $ModDesc: Provides the /check command to retrieve information on a user, channel, or IP address */
 
-extern InspIRCd* ServerInstance;
+
 
 class cmd_check : public command_t
 {
  public:
-       cmd_check() : command_t("CHECK", 'o', 1)
+       cmd_check (InspIRCd* Instance) : command_t(Instance,"CHECK", 'o', 1)
        {
                this->source = "m_check.so";
                syntax = "<nickname>|<ip>|<hostmask>|<channel>";
@@ -189,7 +187,7 @@ class ModuleCheck : public Module
        ModuleCheck(InspIRCd* Me) : Module::Module(Me)
        {
                
-               mycommand = new cmd_check();
+               mycommand = new cmd_check(ServerInstance);
                ServerInstance->AddCommand(mycommand);
        }