diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 00:55:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 00:55:22 +0300 |
commit | 3a7313c027407e3b35360a021c72fe78f181d81d (patch) | |
tree | bb313b81c7feb42c2a0b5855c1eca00ef2d7c1b1 /src/utils/chatutils.cpp | |
parent | 1307b14ff24f3935fa58aef405ffb246c0741336 (diff) | |
download | mv-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.cpp | 6 |
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; } } |