diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-13 11:55:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-13 11:55:03 +0300 |
commit | cf017ab50652d6d9aa7043cd18262a7f43040d45 (patch) | |
tree | 733efb377b72e73580dbf143df3f8d1797f9d1f8 /src/gui/widgets/tabs/guildchattab.cpp | |
parent | 06bce926370519fbd47bf554562e6da217def498 (diff) | |
download | mv-cf017ab50652d6d9aa7043cd18262a7f43040d45.tar.gz mv-cf017ab50652d6d9aa7043cd18262a7f43040d45.tar.bz2 mv-cf017ab50652d6d9aa7043cd18262a7f43040d45.tar.xz mv-cf017ab50652d6d9aa7043cd18262a7f43040d45.zip |
Remove unused chat help from code.
Diffstat (limited to 'src/gui/widgets/tabs/guildchattab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/guildchattab.cpp | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/src/gui/widgets/tabs/guildchattab.cpp b/src/gui/widgets/tabs/guildchattab.cpp index 13386d18f..da1a651e1 100644 --- a/src/gui/widgets/tabs/guildchattab.cpp +++ b/src/gui/widgets/tabs/guildchattab.cpp @@ -55,50 +55,16 @@ GuildChatTab::~GuildChatTab() bool GuildChatTab::handleCommand(const std::string &restrict type, const std::string &restrict args) { - if (type == "help") - { - if (args == "invite") - { - // TRANSLATORS: guild chat tab help - chatLog(_("Command: /invite <nick>")); - // TRANSLATORS: guild chat tab help - chatLog(_("This command invites <nick> to the guild you're in.")); - // TRANSLATORS: guild chat tab help - chatLog(_("If the <nick> has spaces in it, enclose it in " - "double quotes (\").")); - } - else if (args == "leave") - { - // TRANSLATORS: guild chat tab help - chatLog(_("Command: /leave")); - // TRANSLATORS: guild chat tab help - chatLog(_("This command causes the player to leave the guild.")); - } - else - { - return false; - } - } - else if (type == "invite" && guildManager) - { + if (type == "invite" && guildManager) guildManager->invite(args); - } else if (type == "leave" && guildManager) - { guildManager->leave(); - } else if (type == "kick" && guildManager) - { guildManager->kick(args); - } else if (type == "notice" && guildManager) - { guildManager->notice(args); - } else - { return false; - } return true; } @@ -110,18 +76,6 @@ void GuildChatTab::handleInput(const std::string &msg) guildManager->chat(ChatWindow::doReplace(msg)); } -void GuildChatTab::showHelp() -{ - // TRANSLATORS: guild chat tab help - chatLog(_("/help > Display this help.")); - // TRANSLATORS: guild chat tab help - chatLog(_("/invite > Invite a player to your guild")); - // TRANSLATORS: guild chat tab help - chatLog(_("/leave > Leave the guild you are in")); - // TRANSLATORS: guild chat tab help - chatLog(_("/kick > Kick someone from the guild you are in")); -} - void GuildChatTab::getAutoCompleteList(StringVect &names) const { if (!guildManager) |