]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chgname.cpp
No gaurantees this works AT ALL. do not use yet!!!
[user/henk/code/inspircd.git] / src / modules / m_chgname.cpp
index 763ef3c17d3cad851894973852bb9bd13ac166bb..987678b5bda563530799eb53f2f22fce7087a0e6 100644 (file)
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "modules.h"
 
 /* $ModDesc: Provides support for the CHGNAME command */
 
 /** Handle /CHGNAME
  */
-class cmd_chgname : public command_t
+class cmd_chgname : public Command
 {
  public:
-       cmd_chgname (InspIRCd* Instance) : command_t(Instance,"CHGNAME", 'o', 2)
+       cmd_chgname (InspIRCd* Instance) : Command(Instance,"CHGNAME", 'o', 2)
        {
                this->source = "m_chgname.so";
                syntax = "<nick> <newname>";
+               TRANSLATE3(TR_NICK, TR_TEXT, TR_END);
        }
        
-       CmdResult Handle(const char** parameters, int pcnt, userrec *user)
+       CmdResult Handle(const char** parameters, int pcnt, User *user)
        {
-               userrec* dest = ServerInstance->FindNick(parameters[0]);
+               User* dest = ServerInstance->FindNick(parameters[0]);
 
                if (!dest)
                {