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/auctionmanager.cpp | |
parent | 1307b14ff24f3935fa58aef405ffb246c0741336 (diff) | |
download | manaverse-3a7313c027407e3b35360a021c72fe78f181d81d.tar.gz manaverse-3a7313c027407e3b35360a021c72fe78f181d81d.tar.bz2 manaverse-3a7313c027407e3b35360a021c72fe78f181d81d.tar.xz manaverse-3a7313c027407e3b35360a021c72fe78f181d81d.zip |
Remove getter for chatHandler.
Diffstat (limited to 'src/auctionmanager.cpp')
-rw-r--r-- | src/auctionmanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/auctionmanager.cpp b/src/auctionmanager.cpp index 2d02870f3..b9029c25c 100644 --- a/src/auctionmanager.cpp +++ b/src/auctionmanager.cpp @@ -61,8 +61,8 @@ void AuctionManager::init() void AuctionManager::send(const std::string &msg) { - if (Net::getChatHandler()) - Net::getChatHandler()->privateMessage("AuctionBot", msg); + if (chatHandler) + chatHandler->privateMessage("AuctionBot", msg); } /* @@ -84,6 +84,6 @@ void AuctionManager::reload() void AuctionManager::sendMail(const std::string &mail) { - if (Net::getChatHandler()) - Net::getChatHandler()->privateMessage("AuctionBot", "!mail " + mail); + if (chatHandler) + chatHandler->privateMessage("AuctionBot", "!mail " + mail); } |