summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2handler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 16:31:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 16:31:44 +0300
commita5dc57c1f52878c66ce5548ebe9e0d519cbbfbac (patch)
tree4badc9ae4af7fd0631ba3e3b8163a5edb3936772 /src/net/eathena/mail2handler.cpp
parentd6728b9c1c69f0ae7ed85165308d65d3c55606f9 (diff)
downloadplus-a5dc57c1f52878c66ce5548ebe9e0d519cbbfbac.tar.gz
plus-a5dc57c1f52878c66ce5548ebe9e0d519cbbfbac.tar.bz2
plus-a5dc57c1f52878c66ce5548ebe9e0d519cbbfbac.tar.xz
plus-a5dc57c1f52878c66ce5548ebe9e0d519cbbfbac.zip
Add packet CMSG_MAIL2_OPEN_WRITE_MAIL 0x0a08.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r--src/net/eathena/mail2handler.cpp10
1 files changed, 10 insertions, 0 deletions
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