diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-12 02:02:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-12 02:02:05 +0300 |
commit | f457675ecfd704c99e84fe14f0a1dd49a69a9c76 (patch) | |
tree | 615a7d18d4302cc82e7d3f711006e445ed237eb7 /src/auctionmanager.cpp | |
parent | 8f0a7cbb675ede13658bcc10b045d46fda9c93da (diff) | |
download | mv-f457675ecfd704c99e84fe14f0a1dd49a69a9c76.tar.gz mv-f457675ecfd704c99e84fe14f0a1dd49a69a9c76.tar.bz2 mv-f457675ecfd704c99e84fe14f0a1dd49a69a9c76.tar.xz mv-f457675ecfd704c99e84fe14f0a1dd49a69a9c76.zip |
Add missing checks to some files.
Diffstat (limited to 'src/auctionmanager.cpp')
-rw-r--r-- | src/auctionmanager.cpp | 6 |
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); } |