summaryrefslogtreecommitdiff
path: root/src/net/manaserv/loginhandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-27 00:28:21 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-27 00:28:21 +0100
commit40c58b4fe1fe73563f57830b7e57b3cbca9c972a (patch)
tree4de62231e19c7b6bae7d11cc9690fc866a4adcd5 /src/net/manaserv/loginhandler.cpp
parent9ba5bdf74be00f6ed9984c161b16698a13d5eec9 (diff)
downloadmana-40c58b4fe1fe73563f57830b7e57b3cbca9c972a.tar.gz
mana-40c58b4fe1fe73563f57830b7e57b3cbca9c972a.tar.bz2
mana-40c58b4fe1fe73563f57830b7e57b3cbca9c972a.tar.xz
mana-40c58b4fe1fe73563f57830b7e57b3cbca9c972a.zip
Send the correct protocol version when registering on Manaserv.
Diffstat (limited to 'src/net/manaserv/loginhandler.cpp')
-rw-r--r--src/net/manaserv/loginhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/manaserv/loginhandler.cpp b/src/net/manaserv/loginhandler.cpp
index 2f53b643..2f802e21 100644
--- a/src/net/manaserv/loginhandler.cpp
+++ b/src/net/manaserv/loginhandler.cpp
@@ -436,7 +436,7 @@ void LoginHandler::registerAccount(LoginData *loginData)
MessageOut msg(PAMSG_REGISTER);
- msg.writeInt32(0); // client version
+ msg.writeInt32(PROTOCOL_VERSION); // client version
msg.writeString(loginData->username);
// Use a hashed password for privacy reasons
msg.writeString(sha256(loginData->username + loginData->password));