diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-27 02:59:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-27 23:32:12 +0300 |
commit | 1fd495484bb43a1e0b0d088874d7bc588d8d38c9 (patch) | |
tree | 1c975620150a8e30196379748871338fa89720ac /src/gui/widgets/whispertab.cpp | |
parent | 42d107be2ecb0cf81c1a291bb4e63e78094bd62e (diff) | |
download | plus-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.gz plus-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.bz2 plus-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.xz plus-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.zip |
Simplify command handlers.
Diffstat (limited to 'src/gui/widgets/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 6079b668c..c22c9d694 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -23,7 +23,7 @@ #include "gui/widgets/whispertab.h" #include "chatlogger.h" -#include "commandhandler.h" +#include "commands.h" #include "localplayer.h" #include "net/chathandler.h" @@ -140,13 +140,11 @@ bool WhisperTab::handleCommand(const std::string &type, } else if (type == "ignore") { - if (commandHandler) - commandHandler->handleIgnore(mNick, this); + Commands::ignore(mNick, this); } else if (type == "unignore") { - if (commandHandler) - commandHandler->handleUnignore(mNick, this); + Commands::unignore(mNick, this); } else { |