summaryrefslogtreecommitdiff
path: root/src/coremods/core_channel/core_channel.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-05-16 16:49:37 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-05-16 16:49:37 +0200
commit930fd98e48f68b050d3938607bf420844fabbc37 (patch)
tree196f7099593b0f5d1a50de6c2f76a5254621d447 /src/coremods/core_channel/core_channel.h
parent127fe6ed1076c294e01925e4fa8ab2bd64c1b0e0 (diff)
Move Channel::UserList() from core to cmd_names
Diffstat (limited to 'src/coremods/core_channel/core_channel.h')
-rw-r--r--src/coremods/core_channel/core_channel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/coremods/core_channel/core_channel.h b/src/coremods/core_channel/core_channel.h
index f3efa3d67..7e213b5a5 100644
--- a/src/coremods/core_channel/core_channel.h
+++ b/src/coremods/core_channel/core_channel.h
@@ -86,6 +86,8 @@ class CommandTopic : public SplitCommand
class CommandNames : public Command
{
ChanModeReference secretmode;
+ ChanModeReference privatemode;
+ UserModeReference invisiblemode;
public:
/** Constructor for names.
@@ -98,6 +100,13 @@ class CommandNames : public Command
* @return A value from CmdResult to indicate command success or failure.
*/
CmdResult Handle(const std::vector<std::string>& parameters, User *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 isinside If true, the user is inside the channel, if not then false
+ */
+ void SendNames(User* user, Channel* chan, bool isinside);
};
/** Handle /KICK.