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/chattab.cpp | |
parent | 42d107be2ecb0cf81c1a291bb4e63e78094bd62e (diff) | |
download | mv-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.gz mv-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.bz2 mv-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.xz mv-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.zip |
Simplify command handlers.
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index e35105692..4e6e7c522 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -375,8 +375,7 @@ void ChatTab::chatInput(const std::string &message) start = msg.find('[', start + 1); } - if (commandHandler) - commandHandler->replaceVars(msg); + Commands::replaceVars(msg); switch (msg[0]) { |