summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-30 13:23:42 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-30 13:23:42 +0100
commit59c80886a971773d40bc064a8e8933ca2c540856 (patch)
tree86aef5e5758f4c0d707a06e242a991bc86337988
parentff6e64ec0f57b11cce18f1e5efa55abfb929b592 (diff)
core_ison Inherit handler from SplitCommand
-rw-r--r--src/coremods/core_ison.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/coremods/core_ison.cpp b/src/coremods/core_ison.cpp
index 3f05720ff..1336cd222 100644
--- a/src/coremods/core_ison.cpp
+++ b/src/coremods/core_ison.cpp
@@ -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();