diff options
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; +} |