]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/commands/cmd_topic.h
Penalty should be 'const int'. Note, you can set a const in the constructors init...
[user/henk/code/inspircd.git] / include / commands / cmd_topic.h
index ce82ad119860a4b3438f4ee70fd96b62184e020a..3375c164100263c822c269d964c89fbab873c64e 100644 (file)
  * the same way, however, they can be fully unloaded, where these
  * may not.
  */
-class cmd_topic : public command_t
+class cmd_topic : public Command
 {
  public:
        /** Constructor for topic.
         */
-       cmd_topic (InspIRCd* Instance) : command_t(Instance,"TOPIC",0,1) { syntax = "<channel> [<topic>]"; }
+       cmd_topic (InspIRCd* Instance) : Command(Instance,"TOPIC",0,1) { syntax = "<channel> [<topic>]"; }
        /** 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