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