summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-07 01:13:22 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-07 01:13:22 +0300
commit086356622db7b0734be68c58e064544fa243be1b (patch)
tree1688cd334f620dadfff25f3430f496908c4b528f /src/actions/commands.cpp
parent615445b73ce4378a9d62e64d9f90cefdb26979c7 (diff)
downloadplus-086356622db7b0734be68c58e064544fa243be1b.tar.gz
plus-086356622db7b0734be68c58e064544fa243be1b.tar.bz2
plus-086356622db7b0734be68c58e064544fa243be1b.tar.xz
plus-086356622db7b0734be68c58e064544fa243be1b.zip
Add /mailto chat command.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index e10d31d43..fa4ea6767 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -39,6 +39,8 @@
#ifdef EATHENA_SUPPORT
#include "gui/shortcut/emoteshortcut.h"
+
+#include "gui/windows/mailwindow.h"
#endif
#include "gui/windows/chatwindow.h"
@@ -1559,4 +1561,16 @@ impHandler(commandGuildRecall)
return true;
}
+impHandler(mailTo)
+{
+#ifdef EATHENA_SUPPORT
+ if (!mailWindow)
+ return false;
+ mailWindow->createMail(event.args);
+ return true;
+#else
+ return false;
+#endif
+}
+
} // namespace Actions