summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-27 02:59:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-27 23:32:12 +0300
commit1fd495484bb43a1e0b0d088874d7bc588d8d38c9 (patch)
tree1c975620150a8e30196379748871338fa89720ac /src/gui/widgets/chattab.cpp
parent42d107be2ecb0cf81c1a291bb4e63e78094bd62e (diff)
downloadmanaplus-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.gz
manaplus-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.bz2
manaplus-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.tar.xz
manaplus-1fd495484bb43a1e0b0d088874d7bc588d8d38c9.zip
Simplify command handlers.
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r--src/gui/widgets/chattab.cpp3
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])
{