summaryrefslogtreecommitdiff
path: root/src/net/eathena/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-31 21:02:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:54 +0300
commit09f17e5add2fd2fd0b8c907fda6e3b6c0c010f49 (patch)
tree09a50212d936ed8697b3f77cc022d583c07de2a3 /src/net/eathena/loginhandler.cpp
parent87e351fa21e94991038f3ca1cae1767b81071507 (diff)
downloadplus-09f17e5add2fd2fd0b8c907fda6e3b6c0c010f49.tar.gz
plus-09f17e5add2fd2fd0b8c907fda6e3b6c0c010f49.tar.bz2
plus-09f17e5add2fd2fd0b8c907fda6e3b6c0c010f49.tar.xz
plus-09f17e5add2fd2fd0b8c907fda6e3b6c0c010f49.zip
eathena: in sendLoginRegister use client version 20.
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r--src/net/eathena/loginhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp
index 8eb3099af..00d6e3d40 100644
--- a/src/net/eathena/loginhandler.cpp
+++ b/src/net/eathena/loginhandler.cpp
@@ -139,9 +139,9 @@ void LoginHandler::sendLoginRegister(const std::string &restrict username,
A_UNUSED) const
{
MessageOut outMsg(CMSG_LOGIN_REGISTER);
- outMsg.writeInt32(0); // client version
- outMsg.writeString(username, 24);
- outMsg.writeStringNoLog(password, 24);
+ outMsg.writeInt32(20, "client version");
+ outMsg.writeString(username, 24, "login");
+ outMsg.writeStringNoLog(password, 24, "password");
/*
* eAthena calls the last byte "client version 2", but it isn't used at
@@ -149,7 +149,7 @@ void LoginHandler::sendLoginRegister(const std::string &restrict username,
* 0 - can handle the 0x63 "update host" packet
* 1 - defaults to the first char-server (instead of the last)
*/
- outMsg.writeInt8(0x03);
+ outMsg.writeInt8(0x03, "client type");
}
ServerInfo *LoginHandler::getCharServer() const