]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
core_ison Inherit handler from SplitCommand
authorAttila Molnar <attilamolnar@hush.com>
Wed, 30 Dec 2015 12:23:42 +0000 (13:23 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Wed, 30 Dec 2015 12:23:42 +0000 (13:23 +0100)
src/coremods/core_ison.cpp

index 3f05720ff2c919f6022c5cdc6f5aa3e8d199b28a..1336cd222cd95b1a3a9281062346ac3232d48a68 100644 (file)
@@ -22,7 +22,7 @@
 
 /** Handle /ISON.
  */
-class CommandIson : public Command
+class CommandIson : public SplitCommand
 {
        /** Helper function to append a nick to an ISON reply
         * @param user User doing the /ISON
@@ -35,7 +35,9 @@ class CommandIson : public Command
  public:
        /** Constructor for ison.
         */
-       CommandIson ( Module* parent) : Command(parent,"ISON", 1) {
+       CommandIson(Module* parent)
+               : SplitCommand(parent, "ISON", 1)
+       {
                syntax = "<nick> {nick}";
        }
        /** Handle command.
@@ -43,7 +45,7 @@ class CommandIson : public Command
         * @param user The user issuing the command
         * @return A value from CmdResult to indicate command success or failure.
         */
-       CmdResult Handle(const std::vector<std::string>& parameters, User *user);
+       CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user);
 };
 
 bool CommandIson::AddNick(User* user, User* toadd, std::string& reply, const std::string::size_type pos)
@@ -63,7 +65,7 @@ bool CommandIson::AddNick(User* user, User* toadd, std::string& reply, const std
 
 /** Handle /ISON
  */
-CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User *user)
+CmdResult CommandIson::HandleLocal(const std::vector<std::string>& parameters, LocalUser* user)
 {
        std::string reply = "303 " + user->nick + " :";
        const std::string::size_type pos = reply.size();