]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setident.cpp
More AddModes fixes
[user/henk/code/inspircd.git] / src / modules / m_setident.cpp
index ecdf63fb0b078e512f469d39b2d506d3958022dc..179053394d565fec482aaf4be90e8c812f94f91e 100644 (file)
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "modules.h"
 
 /* $ModDesc: Provides support for the SETIDENT command */
 
 /** Handle /SETIDENT
  */
-class cmd_setident : public command_t
+class CommandSetident : public Command
 {
  public:
cmd_setident (InspIRCd* Instance) : command_t(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])
                {
@@ -58,13 +57,13 @@ class cmd_setident : public command_t
 
 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);
        }