diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-22 12:34:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-22 12:34:24 +0300 |
commit | 3472c0b5ef25dd9c9547a05a517366e46e6d9f78 (patch) | |
tree | e0abd956cafabf118a88b2bf06831dd3b64dbc1e /src/gui/widgets/tabs/whispertab.cpp | |
parent | aa85f15df21e65b42c62bcad25a331b944bf270f (diff) | |
download | mv-3472c0b5ef25dd9c9547a05a517366e46e6d9f78.tar.gz mv-3472c0b5ef25dd9c9547a05a517366e46e6d9f78.tar.bz2 mv-3472c0b5ef25dd9c9547a05a517366e46e6d9f78.tar.xz mv-3472c0b5ef25dd9c9547a05a517366e46e6d9f78.zip |
Use same function prototypes for action and command handlers.
Diffstat (limited to 'src/gui/widgets/tabs/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/whispertab.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/whispertab.cpp b/src/gui/widgets/tabs/whispertab.cpp index d0a29797f..ed17bd652 100644 --- a/src/gui/widgets/tabs/whispertab.cpp +++ b/src/gui/widgets/tabs/whispertab.cpp @@ -23,6 +23,7 @@ #include "gui/widgets/tabs/whispertab.h" #include "chatlogger.h" +#include "commandhandler.h" #include "commands.h" #include "being/localplayer.h" @@ -104,11 +105,11 @@ bool WhisperTab::handleCommand(const std::string &restrict type, } else if (type == "ignore") { - Commands::ignore(mNick, this); + CommandHandler::invokeCommand(COMMAND_IGNORE, mNick, this); } else if (type == "unignore") { - Commands::unignore(mNick, this); + CommandHandler::invokeCommand(COMMAND_UNIGNORE, mNick, this); } else { |