summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 18:16:32 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 18:16:32 +0300
commitcd02cce9c9b344c67b05b9b70f944bbed600c62e (patch)
tree3e4ce04ddde7dc8845f6d77367ad5d310423cc4e /src/net/eathena/beinghandler.cpp
parent1a43a25be73ab9ed464903edef65486e54699437 (diff)
downloadplus-cd02cce9c9b344c67b05b9b70f944bbed600c62e.tar.gz
plus-cd02cce9c9b344c67b05b9b70f944bbed600c62e.tar.bz2
plus-cd02cce9c9b344c67b05b9b70f944bbed600c62e.tar.xz
plus-cd02cce9c9b344c67b05b9b70f944bbed600c62e.zip
Add packet CMSG_CHECK_NAME 0x0a13.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index d53848654..31380aa0d 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -106,4 +106,12 @@ void BeingHandler::requestNameByCharId(const int id) const
outMsg.writeInt32(id, "character id");
}
+void BeingHandler::requestCheckName(const std::string &name) const
+{
+ if (packetVersion < 20140423)
+ return;
+ createOutPacket(CMSG_CHECK_NAME);
+ outMsg.writeString(name, 24, "name");
+}
+
} // namespace EAthena