diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-23 01:12:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-23 01:12:26 +0300 |
commit | 75604ffe8c2ef1f2d76a44dc30e8a257b695daf5 (patch) | |
tree | 5cb43dcb41627d3313ba3d2a371b1a597fd3bab5 /src/net/tmwa | |
parent | 17e9519c2ee0b126db5ba1df61dcddf9f7b90b47 (diff) | |
download | manaplus-75604ffe8c2ef1f2d76a44dc30e8a257b695daf5.tar.gz manaplus-75604ffe8c2ef1f2d76a44dc30e8a257b695daf5.tar.bz2 manaplus-75604ffe8c2ef1f2d76a44dc30e8a257b695daf5.tar.xz manaplus-75604ffe8c2ef1f2d76a44dc30e8a257b695daf5.zip |
Add ability to send new mail by /sendmail chat command.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/mail2handler.cpp | 8 | ||||
-rw-r--r-- | src/net/tmwa/mail2handler.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/net/tmwa/mail2handler.cpp b/src/net/tmwa/mail2handler.cpp index 1224ed79d..b964af8cd 100644 --- a/src/net/tmwa/mail2handler.cpp +++ b/src/net/tmwa/mail2handler.cpp @@ -56,6 +56,14 @@ void Mail2Handler::sendMail(const std::string &to A_UNUSED, { } +bool Mail2Handler::queueSendMail(const std::string &to A_UNUSED, + const std::string &title A_UNUSED, + const std::string &body A_UNUSED, + const int64_t &money A_UNUSED) const +{ + return false; +} + void Mail2Handler::nextPage(const MailOpenTypeT openType A_UNUSED, const int64_t mailId A_UNUSED) const { diff --git a/src/net/tmwa/mail2handler.h b/src/net/tmwa/mail2handler.h index 0bc0e2bb2..6a3b1639b 100644 --- a/src/net/tmwa/mail2handler.h +++ b/src/net/tmwa/mail2handler.h @@ -48,6 +48,11 @@ class Mail2Handler final : public Net::Mail2Handler const std::string &body, const int64_t &money) const override final; + bool queueSendMail(const std::string &to, + const std::string &title, + const std::string &body, + const int64_t &money) const override final; + void nextPage(const MailOpenTypeT openType, const int64_t mailId) const override final; |