71 chatLog(
_(
"/ignore > Ignore the other player"));
72 chatLog(
_(
"/unignore > Stop ignoring the other player"));
73 chatLog(
_(
"/close > Close the whisper tab"));
77 const std::string &args)
84 chatLog(
_(
"This command closes the current whisper tab."));
86 else if (args ==
"ignore")
89 chatLog(
_(
"This command ignores the other player regardless of "
90 "current relations."));
92 else if (args ==
"unignore")
94 chatLog(
_(
"Command: /unignore <player>"));
95 chatLog(
_(
"This command stops ignoring the other player if they "
96 "are being ignored."));
101 else if (type ==
"close")
105 else if (type ==
"ignore")
109 else if (type ==
"unignore")
ChatLogger * chatLogger
Chat log object.
const std::string & getName() const
Returns the name of the being.
void log(std::string str)
Enters a message in the log.
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 bool handleCommand(const std::string &type, const std::string &args)
Handle special commands.
void removeWhisper(const std::string &nick)
void handleIgnore(const std::string &args, ChatTab *tab)
Handle an ignore command.
void handleUnignore(const std::string &args, ChatTab *tab)
Handle an unignore command.
virtual void privateMessage(const std::string &recipient, const std::string &text)=0
void setTabColor(const gcn::Color *color)
Set the normal color fo the tab's text.
static const gcn::Color & getThemeColor(int type)
Gets the color associated with the type in the default palette (0).
const std::string & getNick() const
void showHelp() override
Add any extra help text to the output.
void handleInput(const std::string &msg) override
void saveToLogFile(std::string &msg) override
WhisperTab(const std::string &nick)
Constructor.
bool handleCommand(const std::string &type, const std::string &args) override
Handle special commands.
CommandHandler * commandHandler
LocalPlayer * local_player
ChatHandler * getChatHandler()