From 086356622db7b0734be68c58e064544fa243be1b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 7 Mar 2016 01:13:22 +0300 Subject: Add /mailto chat command. --- src/actions/commands.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/actions/commands.cpp') 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 -- cgit v1.2.3-70-g09d2