From 6fc34c4fc73917126ddedd19519e097ecc65333c Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Fri, 18 Dec 2009 22:27:16 -0500 Subject: Makes server send the update host from defaultUpdateHost config (defaults to http://update.manasouce.org/ when non is set) --- src/account-server/accounthandler.cpp | 1 + src/protocol.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp index 5f13af20..507b4f90 100644 --- a/src/account-server/accounthandler.cpp +++ b/src/account-server/accounthandler.cpp @@ -255,6 +255,7 @@ void AccountHandler::handleLoginMessage(AccountClient &client, MessageIn &msg) client.status = CLIENT_CONNECTED; reply.writeByte(ERRMSG_OK); + reply.writeString(Configuration::getValue("defaultUpdateHost","http://update.manasource.org")); client.send(reply); // Acknowledge login // Return information about available characters diff --git a/src/protocol.h b/src/protocol.h index 92a66381..869d17ba 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -49,7 +49,7 @@ enum { PAMSG_REQUEST_REGISTER_INFO = 0x0005, // 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 + APMSG_LOGIN_RESPONSE = 0x0012, // B error, [S update host] PAMSG_LOGOUT = 0x0013, // - APMSG_LOGOUT_RESPONSE = 0x0014, // B error PAMSG_CHAR_CREATE = 0x0020, // S name, B hair style, B hair color, B gender, W*6 stats -- cgit v1.2.3-70-g09d2