summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-30 03:26:00 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-30 03:26:00 +0300
commit84941829031cbd707ab28802c7423ce19bfba32e (patch)
treed1e066e36fa66e9d925cc101acb9fa3e38089113 /src/commandhandler.cpp
parent9f752d5431364c052b364045015d3574da2c320c (diff)
downloadManaVerse-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.cpp4
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,