summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-05 02:13:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-05 02:13:29 +0300
commitdc706af3765b75330e4e7c557ea3e4cf1f119631 (patch)
tree183a32a615ba1b2d8450474cfc829828bc5831de /src/actions/commands.cpp
parent92232a86a44bd31701f0f7957a46f40e89ef4b92 (diff)
downloadmv-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.gz
mv-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.bz2
mv-dc706af3765b75330e4e7c557ea3e4cf1f119631.tar.xz
mv-dc706af3765b75330e4e7c557ea3e4cf1f119631.zip
Add option for enable manamarket intergration and support /mail command. (for tmw only).
But because bot limitation, only some players can send mails.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 0a8ef91ba..0f34689ee 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -518,6 +518,11 @@ impHandler(imitation)
impHandler0(sendMail)
{
// +++ need impliment for hercules
+ if (serverConfig.getBoolValue("enableManaMarketBot"))
+ {
+ chatHandler->privateMessage("ManaMarket", "!mail " + event.args);
+ return true;
+ }
return false;
}