]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/commands/cmd_part.h
Penalty should be 'const int'. Note, you can set a const in the constructors init...
[user/henk/code/inspircd.git] / include / commands / cmd_part.h
index c4c9668a358d4224cdecef9b8663feda93663267..0965a5031c955bece7753ca0aabc3978f8f40a14 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_part : public command_t
+class cmd_part : public Command
 {
  public:
        /** Constructor for part.
         */
-       cmd_part (InspIRCd* Instance) : command_t(Instance,"PART",0,1) { syntax = "<channel>{,<channel>} [<reason>]"; }
+       cmd_part (InspIRCd* Instance) : Command(Instance,"PART",0,1) { syntax = "<channel>{,<channel>} [<reason>]"; }
        /** Handle command.
         * @param parameters The parameters to the comamnd
         * @param pcnt The number of parameters passed to teh command
         * @param user The user issuing the command
         * @return A value from CmdResult to indicate command success or failure.
         */
-       CmdResult Handle(const char** parameters, int pcnt, userrec *user);
+       CmdResult Handle(const char** parameters, int pcnt, User *user);
 };
 
 #endif