From 3472c0b5ef25dd9c9547a05a517366e46e6d9f78 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Aug 2014 12:34:24 +0300 Subject: Use same function prototypes for action and command handlers. --- src/gui/widgets/tabs/whispertab.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/tabs') 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 { -- cgit v1.2.3-70-g09d2