summaryrefslogtreecommitdiff
path: root/src/utils/chatutils.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/utils/chatutils.cpp
parent1307b14ff24f3935fa58aef405ffb246c0741336 (diff)
downloadmv-3a7313c027407e3b35360a021c72fe78f181d81d.tar.gz
mv-3a7313c027407e3b35360a021c72fe78f181d81d.tar.bz2
mv-3a7313c027407e3b35360a021c72fe78f181d81d.tar.xz
mv-3a7313c027407e3b35360a021c72fe78f181d81d.zip
Remove getter for chatHandler.
Diffstat (limited to 'src/utils/chatutils.cpp')
-rw-r--r--src/utils/chatutils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp
index 79251a24b..a3322a370 100644
--- a/src/utils/chatutils.cpp
+++ b/src/utils/chatutils.cpp
@@ -48,7 +48,7 @@ void outStringNormal(ChatTab *const tab,
if (!tab)
{
- Net::getChatHandler()->talk(str, GENERAL_CHANNEL);
+ chatHandler->talk(str, GENERAL_CHANNEL);
return;
}
@@ -82,11 +82,11 @@ void outStringNormal(ChatTab *const tab,
const WhisperTab *const whisper
= static_cast<const WhisperTab *const>(tab);
tab->chatLog(localPlayer->getName(), str);
- Net::getChatHandler()->privateMessage(whisper->getNick(), str);
+ chatHandler->privateMessage(whisper->getNick(), str);
break;
}
default:
- Net::getChatHandler()->talk(def, GENERAL_CHANNEL);
+ chatHandler->talk(def, GENERAL_CHANNEL);
break;
}
}