summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2handler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-22 20:12:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-22 20:12:44 +0300
commit17e9519c2ee0b126db5ba1df61dcddf9f7b90b47 (patch)
treea0fd7d9fb11e1922f412b54fbcff0a8ce9ae8698 /src/net/eathena/mail2handler.cpp
parent7caa4b48dd0d8ba320b3af2e77c15ecd49d06b58 (diff)
downloadmanaplus-17e9519c2ee0b126db5ba1df61dcddf9f7b90b47.tar.gz
manaplus-17e9519c2ee0b126db5ba1df61dcddf9f7b90b47.tar.bz2
manaplus-17e9519c2ee0b126db5ba1df61dcddf9f7b90b47.tar.xz
manaplus-17e9519c2ee0b126db5ba1df61dcddf9f7b90b47.zip
Move requestCheckName from BeingHandler into Mail2Handler.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r--src/net/eathena/mail2handler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp
index bf6f178fb..52360d7b7 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -242,4 +242,15 @@ void Mail2Handler::cancelWriteMail() const
createOutPacket(CMSG_MAIL2_CANCEL_WRITE_MAIL);
}
+void Mail2Handler::requestCheckName(const std::string &name) const
+{
+ if (packetVersion < 20140423 ||
+ serverVersion < 19)
+ {
+ return;
+ }
+ createOutPacket(CMSG_MAIL2_CHECK_NAME);
+ outMsg.writeString(name, 24, "name");
+}
+
} // namespace EAthena