From a5dc57c1f52878c66ce5548ebe9e0d519cbbfbac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 11 Aug 2017 16:31:44 +0300 Subject: Add packet CMSG_MAIL2_OPEN_WRITE_MAIL 0x0a08. --- src/net/eathena/mail2handler.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/eathena/mail2handler.cpp') diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp index f6a3c88ca..550d5f6c1 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -20,6 +20,10 @@ #include "net/eathena/mail2handler.h" +#include "net/eathena/messageout.h" +#include "net/eathena/updateprotocol.h" +#include "net/eathena/protocolout.h" + #include "debug.h" namespace EAthena @@ -35,4 +39,10 @@ Mail2Handler::~Mail2Handler() mail2Handler = nullptr; } +void Mail2Handler::openWriteMail(const std::string &receiver) const +{ + createOutPacket(CMSG_MAIL2_OPEN_WRITE_MAIL); + outMsg.writeString(receiver, 24, "receiver name"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2