From 3a7313c027407e3b35360a021c72fe78f181d81d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 00:55:22 +0300 Subject: Remove getter for chatHandler. --- src/gui/widgets/tabs/chattab.cpp | 2 +- src/gui/widgets/tabs/whispertab.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/tabs') diff --git a/src/gui/widgets/tabs/chattab.cpp b/src/gui/widgets/tabs/chattab.cpp index d699b29fe..54d675a85 100644 --- a/src/gui/widgets/tabs/chattab.cpp +++ b/src/gui/widgets/tabs/chattab.cpp @@ -434,7 +434,7 @@ void ChatTab::clearText() void ChatTab::handleInput(const std::string &msg) { - Net::getChatHandler()->talk(ChatWindow::doReplace(msg), + chatHandler->talk(ChatWindow::doReplace(msg), mChannelName); } diff --git a/src/gui/widgets/tabs/whispertab.cpp b/src/gui/widgets/tabs/whispertab.cpp index a67b9450c..6c89a887b 100644 --- a/src/gui/widgets/tabs/whispertab.cpp +++ b/src/gui/widgets/tabs/whispertab.cpp @@ -53,7 +53,7 @@ void WhisperTab::handleInput(const std::string &msg) { std::string newMsg; newMsg = ChatWindow::doReplace(msg); - Net::getChatHandler()->privateMessage(mNick, newMsg); + chatHandler->privateMessage(mNick, newMsg); if (localPlayer) chatLog(localPlayer->getName(), newMsg); @@ -77,7 +77,7 @@ void WhisperTab::handleCommand(const std::string &msg) if (type == "me") { std::string str = strprintf("*%s*", args.c_str()); - Net::getChatHandler()->privateMessage(mNick, str); + chatHandler->privateMessage(mNick, str); if (localPlayer) chatLog(localPlayer->getName(), str); else -- cgit v1.2.3-70-g09d2