]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setident.cpp
Fix these to use new hook system (u_listmode wasnt fixed yet)
[user/henk/code/inspircd.git] / src / modules / m_setident.cpp
index 4a19b8412a54b7712ef5f3a53fd57200ce7ff686..8d7980961e0c0fee503c7b66eafa0e39136e6c04 100644 (file)
 
 /** Handle /SETIDENT
  */
-class cmd_setident : public Command
+class CommandSetident : public Command
 {
  public:
cmd_setident (InspIRCd* Instance) : Command(Instance,"SETIDENT", 'o', 1)
CommandSetident (InspIRCd* Instance) : Command(Instance,"SETIDENT", 'o', 1)
        {
                this->source = "m_setident.so";
                syntax = "<new-ident>";
                TRANSLATE2(TR_TEXT, TR_END);
        }
 
-       CmdResult Handle(const char** parameters, int pcnt, userrec *user)
+       CmdResult Handle(const char** parameters, int pcnt, User *user)
        {
                if (!*parameters[0])
                {
@@ -57,14 +57,15 @@ class cmd_setident : public Command
 
 class ModuleSetIdent : public Module
 {
-       cmd_setident*   mycommand;
+       CommandSetident*        mycommand;
        
  public:
        ModuleSetIdent(InspIRCd* Me) : Module(Me)
        {
                
-               mycommand = new cmd_setident(ServerInstance);
+               mycommand = new CommandSetident(ServerInstance);
                ServerInstance->AddCommand(mycommand);
+
        }
        
        virtual ~ModuleSetIdent()