summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-22 12:34:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-22 12:34:24 +0300
commit3472c0b5ef25dd9c9547a05a517366e46e6d9f78 (patch)
treee0abd956cafabf118a88b2bf06831dd3b64dbc1e /src/gui/widgets
parentaa85f15df21e65b42c62bcad25a331b944bf270f (diff)
downloadmanaverse-3472c0b5ef25dd9c9547a05a517366e46e6d9f78.tar.gz
manaverse-3472c0b5ef25dd9c9547a05a517366e46e6d9f78.tar.bz2
manaverse-3472c0b5ef25dd9c9547a05a517366e46e6d9f78.tar.xz
manaverse-3472c0b5ef25dd9c9547a05a517366e46e6d9f78.zip
Use same function prototypes for action and command handlers.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabs/whispertab.cpp5
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
{