summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-30 13:28:49 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-30 13:28:49 +0100
commit84924a36317abe82f82a12a4509985515217fea3 (patch)
treedd46f35046ba9f1703bb14f9e2f1160464856c6c /src
parent2aa605cdd2f6d10b95d9973166ed797f2dc5f6e9 (diff)
cmd_names Inherit handler from SplitCommand
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_channel/cmd_names.cpp6
-rw-r--r--src/coremods/core_channel/core_channel.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/coremods/core_channel/cmd_names.cpp b/src/coremods/core_channel/cmd_names.cpp
index 3af99ed2b..05f16e10b 100644
--- a/src/coremods/core_channel/cmd_names.cpp
+++ b/src/coremods/core_channel/cmd_names.cpp
@@ -22,7 +22,7 @@
#include "core_channel.h"
CommandNames::CommandNames(Module* parent)
- : Command(parent, "NAMES", 0, 0)
+ : SplitCommand(parent, "NAMES", 0, 0)
, secretmode(parent, "secret")
, privatemode(parent, "private")
, invisiblemode(parent, "invisible")
@@ -32,7 +32,7 @@ CommandNames::CommandNames(Module* parent)
/** Handle /NAMES
*/
-CmdResult CommandNames::Handle (const std::vector<std::string>& parameters, User *user)
+CmdResult CommandNames::HandleLocal(const std::vector<std::string>& parameters, LocalUser* user)
{
Channel* c;
@@ -66,7 +66,7 @@ CmdResult CommandNames::Handle (const std::vector<std::string>& parameters, User
return CMD_FAILURE;
}
-void CommandNames::SendNames(User* user, Channel* chan, bool show_invisible)
+void CommandNames::SendNames(LocalUser* user, Channel* chan, bool show_invisible)
{
std::string list;
if (chan->IsModeSet(secretmode))
diff --git a/src/coremods/core_channel/core_channel.h b/src/coremods/core_channel/core_channel.h
index 2a2800523..0dafde8cb 100644
--- a/src/coremods/core_channel/core_channel.h
+++ b/src/coremods/core_channel/core_channel.h
@@ -90,7 +90,7 @@ class CommandTopic : public SplitCommand
/** Handle /NAMES.
*/
-class CommandNames : public Command
+class CommandNames : public SplitCommand
{
ChanModeReference secretmode;
ChanModeReference privatemode;
@@ -106,14 +106,14 @@ class CommandNames : 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);
/** Spool the NAMES list for a given channel to the given user
* @param user User to spool the NAMES list to
* @param chan Channel whose nicklist to send
* @param show_invisible True to show invisible (+i) members to the user, false to omit them from the list
*/
- void SendNames(User* user, Channel* chan, bool show_invisible);
+ void SendNames(LocalUser* user, Channel* chan, bool show_invisible);
};
/** Handle /KICK.