]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_clones.cpp
Fix these to use new hook system (u_listmode wasnt fixed yet)
[user/henk/code/inspircd.git] / src / modules / m_clones.cpp
index 72a7ca7e832abc643480967e225139c182d055a3..654de81f378e51b50c00cd9d9a51b03294692a7e 100644 (file)
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 #include "wildcard.h"
 
 /* $ModDesc: Provides the /clones command to retrieve information on a user, channel, or IP address */
 
 /** Handle /CHECK
  */
-class cmd_clones : public command_t
+class CommandClones : public Command
 {
  public:
-       cmd_clones (InspIRCd* Instance) : command_t(Instance,"CLONES", 'o', 1)
+       CommandClones (InspIRCd* Instance) : Command(Instance,"CLONES", 'o', 1)
        {
                this->source = "m_clones.so";
                syntax = "<limit>";
@@ -39,7 +36,7 @@ class cmd_clones : public command_t
                return "<?>";
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, userrec *user)
+       CmdResult Handle (const char** parameters, int pcnt, User *user)
        {
 
                std::string clonesstr = "304 " + std::string(user->nick) + " :CLONES";
@@ -72,13 +69,14 @@ class cmd_clones : public command_t
 class ModuleClones : public Module
 {
  private:
-       cmd_clones *mycommand;
+       CommandClones *mycommand;
  public:
        ModuleClones(InspIRCd* Me) : Module(Me)
        {
                
-               mycommand = new cmd_clones(ServerInstance);
+               mycommand = new CommandClones(ServerInstance);
                ServerInstance->AddCommand(mycommand);
+
        }
        
        virtual ~ModuleClones()