diff options
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); } |