summaryrefslogtreecommitdiff
path: root/src/auctionmanager.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/auctionmanager.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/auctionmanager.cpp')
-rw-r--r--src/auctionmanager.cpp8
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);
}