From ce0c0778675908f7be557b1c115de3eabb828079 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 12:14:29 +0300 Subject: Move chat command /mail into actions. --- src/actions/commands.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 29414b18d..6e8fca4a0 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -21,6 +21,7 @@ #include "actions/commands.h" #include "actormanager.h" +#include "auctionmanager.h" #include "configuration.h" #include "dropshortcut.h" #include "emoteshortcut.h" @@ -423,4 +424,14 @@ impHandler(imitation) return true; } +impHandler(sendMail) +{ + if (auctionManager && auctionManager->getEnableAuctionBot()) + { + auctionManager->sendMail(event.args); + return true; + } + return false; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50