diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-12-05 11:18:16 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-05 11:18:16 -0700 |
commit | 7ff6ea8d742b41603a8f08c2fc16c683330cb5ec (patch) | |
tree | 89fe90ec816116d1bf268735877b13891e9ab5de /src/net/manaserv | |
parent | 1bce89619b241eac193a235fc790c91b7d5a8227 (diff) | |
download | mana-7ff6ea8d742b41603a8f08c2fc16c683330cb5ec.tar.gz mana-7ff6ea8d742b41603a8f08c2fc16c683330cb5ec.tar.bz2 mana-7ff6ea8d742b41603a8f08c2fc16c683330cb5ec.tar.xz mana-7ff6ea8d742b41603a8f08c2fc16c683330cb5ec.zip |
Syncronize registration info with ManaServ
Diffstat (limited to 'src/net/manaserv')
-rw-r--r-- | src/net/manaserv/loginhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/manaserv/protocol.h | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/net/manaserv/loginhandler.cpp b/src/net/manaserv/loginhandler.cpp index 1cb9baff..34202411 100644 --- a/src/net/manaserv/loginhandler.cpp +++ b/src/net/manaserv/loginhandler.cpp @@ -216,8 +216,6 @@ void LoginHandler::handleMessage(Net::MessageIn &msg) { mMinUserNameLength = msg.readInt8(); mMaxUserNameLength = msg.readInt8(); - msg.readInt8(); - msg.readInt8(); std::string captchaURL = msg.readString(); std::string captchaInstructions = msg.readString(); @@ -300,7 +298,7 @@ void LoginHandler::handleRegisterResponse(Net::MessageIn &msg) case REGISTER_EXISTS_EMAIL: errorMessage = _("Email address already exists."); break; - case REGISTER_FAILED_CAPTCHA: + case REGISTER_CAPTCHA_WRONG: errorMessage = _("You took too long with the captcha or your " "response was incorrect."); break; diff --git a/src/net/manaserv/protocol.h b/src/net/manaserv/protocol.h index fe38f35c..c0add694 100644 --- a/src/net/manaserv/protocol.h +++ b/src/net/manaserv/protocol.h @@ -45,7 +45,7 @@ enum { PAMSG_UNREGISTER = 0x0003, // - APMSG_UNREGISTER_RESPONSE = 0x0004, // B error PAMSG_REQUEST_REGISTER_INFO = 0x0005, // - APMSG_REGISTER_INFO_RESPONSE = 0x0006, // B byte registrationAllowed, byte minEmailLength, byte maxEmailLength, byte minNameLength, byte maxNameLength, byte minPasswordLength, byte maxPasswordLength, string captchaURL, string captchaInstructions + APMSG_REGISTER_INFO_RESPONSE = 0x0006, // B byte registrationAllowed, byte minNameLength, byte maxNameLength, string captchaURL, string captchaInstructions PAMSG_LOGIN = 0x0010, // L version, S username, S password APMSG_LOGIN_RESPONSE = 0x0012, // B error [, S updatehost] PAMSG_LOGOUT = 0x0013, // - @@ -241,7 +241,7 @@ enum { REGISTER_INVALID_VERSION = 0x40, // the user is using an incompatible protocol REGISTER_EXISTS_USERNAME, // there already is an account with this username REGISTER_EXISTS_EMAIL, // there already is an account with this email address - REGISTER_FAILED_CAPTCHA // captcha respose is bad + REGISTER_CAPTCHA_WRONG // user didn't solve the captcha correctly }; // Character creation specific return values |