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/net/ea/buysellhandler.cpp | |
parent | 1307b14ff24f3935fa58aef405ffb246c0741336 (diff) | |
download | manaplus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.gz manaplus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.bz2 manaplus-3a7313c027407e3b35360a021c72fe78f181d81d.tar.xz manaplus-3a7313c027407e3b35360a021c72fe78f181d81d.zip |
Remove getter for chatHandler.
Diffstat (limited to 'src/net/ea/buysellhandler.cpp')
-rw-r--r-- | src/net/ea/buysellhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index 0e3687aa3..6bdc33305 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -66,7 +66,7 @@ void BuySellHandler::requestSellList(const std::string &nick) const if (config.getBoolValue("hideShopMessages")) { - Net::getChatHandler()->privateMessage(nick, data); + chatHandler->privateMessage(nick, data); } else { @@ -85,7 +85,7 @@ void BuySellHandler::requestBuyList(const std::string &nick) const if (config.getBoolValue("hideShopMessages")) { - Net::getChatHandler()->privateMessage(nick, data); + chatHandler->privateMessage(nick, data); } else { @@ -107,7 +107,7 @@ void BuySellHandler::sendBuyRequest(const std::string &nick, item->getId(), item->getPrice(), amount); if (config.getBoolValue("hideShopMessages")) - Net::getChatHandler()->privateMessage(nick, data); + chatHandler->privateMessage(nick, data); else chatWindow->addWhisper(nick, data, ChatMsgType::BY_PLAYER); } @@ -126,7 +126,7 @@ void BuySellHandler::sendSellRequest(const std::string &nick, item->getId(), item->getPrice(), amount); if (config.getBoolValue("hideShopMessages")) - Net::getChatHandler()->privateMessage(nick, data); + chatHandler->privateMessage(nick, data); else chatWindow->addWhisper(nick, data, ChatMsgType::BY_PLAYER); } |