53 chatLog(
_(
"/help > Display this help."));
54 chatLog(
_(
"/invite > Invite a player to your guild"));
55 chatLog(
_(
"/leave > Leave the guild you are in"));
56 chatLog(
_(
"/kick > Kick someone from the guild you are in"));
65 chatLog(
_(
"Command: /invite <nick>"));
66 chatLog(
_(
"This command invites <nick> to the guild you're in."));
67 chatLog(
_(
"If the <nick> has spaces in it, enclose it in "
68 "double quotes (\")."));
70 else if (args ==
"leave")
73 chatLog(
_(
"This command causes the player to leave the guild."));
78 else if (type ==
"create" || type ==
"new")
85 else if (type ==
"invite")
89 else if (type ==
"leave")
93 else if (type ==
"kick")
ChatLogger * chatLogger
Chat log object.
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.
void getNames(std::vector< std::string > &names) const
GuildMember * getMember(int id) const
Find a member by ID.
short getId() const
Get the id of the guild.
virtual void create(const std::string &name)=0
virtual void chat(int guildId, const std::string &text)=0
virtual void kick(GuildMember *member, std::string reason=std::string())=0
virtual void invite(int guildId, const std::string &name)=0
virtual void leave(int guildId)=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).
void handleInput(const std::string &msg) override
void saveToLogFile(std::string &msg) override
void showHelp() override
Add any extra help text to the output.
void getAutoCompleteList(std::vector< std::string > &names) const override
bool handleCommand(const std::string &type, const std::string &args) override
Handle special commands.
GuildHandler * getGuildHandler()
Warning: buffers and other variables are shared, so there can be only one connection active at a time...