48 chatLog(
_(
"/users > Lists the users in the current channel"));
49 chatLog(
_(
"/topic > Set the topic of the current channel"));
50 chatLog(
_(
"/quit > Leave a channel"));
51 chatLog(
_(
"/op > Make a user a channel operator"));
52 chatLog(
_(
"/kick > Kick a user from the channel"));
56 const std::string &args)
63 chatLog(
_(
"This command shows the users in this channel."));
65 else if (args ==
"topic")
67 chatLog(
_(
"Command: /topic <message>"));
68 chatLog(
_(
"This command sets the topic to <message>."));
70 else if (args ==
"quit")
73 chatLog(
_(
"This command leaves the current channel."));
74 chatLog(
_(
"If you're the last person in the channel, "
75 "it will be deleted."));
77 else if (args ==
"op")
80 chatLog(
_(
"This command makes <nick> a channel operator."));
81 chatLog(
_(
"If the <nick> has spaces in it, enclose it in "
82 "double quotes (\")."));
83 chatLog(
_(
"Channel operators can kick and op other users "
84 "from the channel."));
86 else if (args ==
"kick")
89 chatLog(
_(
"This command makes <nick> leave the channel."));
90 chatLog(
_(
"If the <nick> has spaces in it, enclose it in "
91 "double quotes (\")."));
96 else if (type ==
"users")
100 else if (type ==
"topic")
104 else if (type ==
"quit")
108 else if (type ==
"op")
116 else if (type ==
"kick")
ChannelTab(Channel *channel)
void handleInput(const std::string &msg) override
void showHelp() override
Add any extra help text to the output.
bool handleCommand(const std::string &type, const std::string &args) override
Handle special commands.
Channel * getChannel() const
const std::string & getName() const
Get this channel's name.
int getId() const
Get the id associated witht his channel.
A tab for the chat window.
void chatLog(std::string line, Own own=BY_SERVER, bool ignoreRecord=false)
Adds a line of text to our message list.
virtual void setChannelTopic(int channelId, const std::string &text)=0
virtual void setUserMode(int channelId, const std::string &name, int mode)=0
virtual void quitChannel(int channelId)=0
virtual void sendToChannel(int channelId, const std::string &text)=0
virtual void userList(const std::string &channel)=0
virtual void kickUser(int channelId, const std::string &name)=0
ChatHandler * getChatHandler()