From 1fd495484bb43a1e0b0d088874d7bc588d8d38c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Nov 2012 02:59:26 +0300 Subject: Simplify command handlers. --- src/gui/widgets/chattab.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/widgets/chattab.cpp') 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]) { -- cgit v1.2.3-70-g09d2