summaryrefslogtreecommitdiff
path: root/src/auctionmanager.cpp
diff options
context:
space:
mode:
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);
}