diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-30 03:26:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-30 03:26:00 +0300 |
commit | 84941829031cbd707ab28802c7423ce19bfba32e (patch) | |
tree | d1e066e36fa66e9d925cc101acb9fa3e38089113 /src/commandhandler.cpp | |
parent | 9f752d5431364c052b364045015d3574da2c320c (diff) | |
download | manaverse-84941829031cbd707ab28802c7423ce19bfba32e.tar.gz manaverse-84941829031cbd707ab28802c7423ce19bfba32e.tar.bz2 manaverse-84941829031cbd707ab28802c7423ce19bfba32e.tar.xz manaverse-84941829031cbd707ab28802c7423ce19bfba32e.zip |
Add auction bot support switch.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 559cfd37e..dc962a17d 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -22,6 +22,7 @@ #include "commandhandler.h" +#include "auctionmanager.h" #include "actorspritemanager.h" #include "channelmanager.h" #include "channel.h" @@ -865,7 +866,8 @@ void CommandHandler::handleHack(const std::string &args, ChatTab *tab A_UNUSED) void CommandHandler::handleMail(const std::string &args, ChatTab *tab A_UNUSED) { - Net::getChatHandler()->privateMessage("AuctionBot", "!mail " + args); + if (auctionManager && auctionManager->getEnableAuctionBot()) + auctionManager->sendMail(args); } void CommandHandler::handlePriceLoad(const std::string &args A_UNUSED, |