diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-28 21:38:53 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-28 21:42:50 -0600 |
commit | ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd (patch) | |
tree | 02ca63f23cadb2ee432b33a48bcde6dbd343af09 /src/gui/widgets | |
parent | 08f7e0c085078d863b822d6e65adceb64b264004 (diff) | |
download | mana-client-ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd.tar.gz mana-client-ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd.tar.bz2 mana-client-ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd.tar.xz mana-client-ec1c6bc0d44d0b6b94607d36a8cd28e6c4e484cd.zip |
Add /ignore and /unignore commands
These make it easy to ignore/unignore other players that aren't visible.
Special versions are also available in WhisperTabs that don't need a
name given.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 23325108..43c63cc0 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -21,6 +21,7 @@ #include "whispertab.h" +#include "commandhandler.h" #include "localplayer.h" #include "gui/palette.h" @@ -65,6 +66,8 @@ void WhisperTab::handleCommand(const std::string &msg) void WhisperTab::showHelp() { + chatLog(_("/ignore > Ignore the other player")); + chatLog(_("/unignore > Stop ignoring the other player")); chatLog(_("/close > Close the whisper tab")); } @@ -78,6 +81,18 @@ bool WhisperTab::handleCommand(const std::string &type, chatLog(_("Command: /close")); chatLog(_("This command closes the current whisper tab.")); } + else if (args == "ignore") + { + chatLog(_("Command: /ignore")); + chatLog(_("This command ignores the other player reguardless of " + "current relations.")); + } + else if (args == "unignore") + { + chatLog(_("Command: /unignore <player>")); + chatLog(_("This command stops ignoring the other player if they " + "are being ignored")); + } else return false; } @@ -85,6 +100,14 @@ bool WhisperTab::handleCommand(const std::string &type, { delete this; } + else if (type == "ignore") + { + commandHandler->handleIgnore(mNick, this); + } + else if (type == "unignore") + { + commandHandler->handleUnignore(mNick, this); + } else return false; |