diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 14 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 15 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 diff --git a/src/actions/commands.h b/src/actions/commands.h index 41db1e042..76dc683e9 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -138,6 +138,7 @@ namespace Actions decHandler(commandPartyRecall); decHandler(commandBreakGuild); decHandler(commandGuildRecall); + decHandler(mailTo); } // namespace Actions #undef decHandler |