summaryrefslogtreecommitdiff
path: root/src/auctionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-12 02:02:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-12 02:02:05 +0300
commitf457675ecfd704c99e84fe14f0a1dd49a69a9c76 (patch)
tree615a7d18d4302cc82e7d3f711006e445ed237eb7 /src/auctionmanager.cpp
parent8f0a7cbb675ede13658bcc10b045d46fda9c93da (diff)
downloadplus-f457675ecfd704c99e84fe14f0a1dd49a69a9c76.tar.gz
plus-f457675ecfd704c99e84fe14f0a1dd49a69a9c76.tar.bz2
plus-f457675ecfd704c99e84fe14f0a1dd49a69a9c76.tar.xz
plus-f457675ecfd704c99e84fe14f0a1dd49a69a9c76.zip
Add missing checks to some files.
Diffstat (limited to 'src/auctionmanager.cpp')
-rw-r--r--src/auctionmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/auctionmanager.cpp b/src/auctionmanager.cpp
index b360279ba..900d47e29 100644
--- a/src/auctionmanager.cpp
+++ b/src/auctionmanager.cpp
@@ -64,7 +64,8 @@ void AuctionManager::init()
void AuctionManager::send(std::string msg)
{
- Net::getChatHandler()->privateMessage("AuctionBot", msg);
+ if (Net::getChatHandler())
+ Net::getChatHandler()->privateMessage("AuctionBot", msg);
}
bool AuctionManager::processAuctionMessage(std::string msg)
@@ -85,5 +86,6 @@ void AuctionManager::reload()
void AuctionManager::sendMail(std::string mail)
{
- Net::getChatHandler()->privateMessage("AuctionBot", "!mail " + mail);
+ if (Net::getChatHandler())
+ Net::getChatHandler()->privateMessage("AuctionBot", "!mail " + mail);
}