diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-04-16 18:55:35 +0200 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-04-16 18:55:35 +0200 |
commit | 2fb36c5f27e2891bbd9968bdf9bbc7142ff28983 (patch) | |
tree | 56dc005cf1fa552f13be2668d8e4547bfaf68815 /src/gui/widgets/whispertab.cpp | |
parent | 126c19c7acd63fcd039ab9449a5d96790ce3cfac (diff) | |
parent | 736795a624ae5f04b11fa284cb8a4b14579c1766 (diff) | |
download | mana-client-2fb36c5f27e2891bbd9968bdf9bbc7142ff28983.tar.gz mana-client-2fb36c5f27e2891bbd9968bdf9bbc7142ff28983.tar.bz2 mana-client-2fb36c5f27e2891bbd9968bdf9bbc7142ff28983.tar.xz mana-client-2fb36c5f27e2891bbd9968bdf9bbc7142ff28983.zip |
Merge branch 'master' of git@gitorious.org:tmw/mainline
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index d69a495c..975cac94 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -62,3 +62,30 @@ void WhisperTab::handleCommand(std::string msg) else ChatTab::handleCommand(msg); } + +void WhisperTab::showHelp() +{ + chatLog(_("/close > Close the whisper tab")); +} + +bool WhisperTab::handleCommand(std::string type, std::string args) +{ + if (type == "help") + { + if (args == "close") + { + chatLog(_("Command: /close")); + chatLog(_("This command closes the current whisper tab.")); + } + else + return false; + } + else if (type == "close") + { + delete this; + } + else + return false; + + return true; +} |