summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/whispertab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 00:55:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 00:55:22 +0300
commit3a7313c027407e3b35360a021c72fe78f181d81d (patch)
treebb313b81c7feb42c2a0b5855c1eca00ef2d7c1b1 /src/gui/widgets/tabs/whispertab.cpp
parent1307b14ff24f3935fa58aef405ffb246c0741336 (diff)
downloadmanaplus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.gz
manaplus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.bz2
manaplus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.xz
manaplus-3a7313c027407e3b35360a021c72fe78f181d81d.zip
Remove getter for chatHandler.
Diffstat (limited to 'src/gui/widgets/tabs/whispertab.cpp')
-rw-r--r--src/gui/widgets/tabs/whispertab.cpp4
1 files changed, 2 insertions, 2 deletions
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