summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 12:14:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 12:14:29 +0300
commitce0c0778675908f7be557b1c115de3eabb828079 (patch)
treeb927c494bf5d2777c56494776ad379a9564b45a0 /src/actions
parent1a9a7ece01b6633e1fe860cba03bfd0d895c172d (diff)
downloadplus-ce0c0778675908f7be557b1c115de3eabb828079.tar.gz
plus-ce0c0778675908f7be557b1c115de3eabb828079.tar.bz2
plus-ce0c0778675908f7be557b1c115de3eabb828079.tar.xz
plus-ce0c0778675908f7be557b1c115de3eabb828079.zip
Move chat command /mail into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp11
-rw-r--r--src/actions/commands.h1
2 files changed, 12 insertions, 0 deletions
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
diff --git a/src/actions/commands.h b/src/actions/commands.h
index fbee9e125..98f13b2d5 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -48,6 +48,7 @@ namespace Actions
decHandler(follow);
decHandler(navigate);
decHandler(imitation);
+ decHandler(sendMail);
} // namespace Actions
#undef decHandler