summaryrefslogtreecommitdiff
path: root/src/account-server/accounthandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-09-15 21:26:07 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-09-15 21:26:07 +0200
commitfa901d1cb94cdd47cb066402ae7e478154113306 (patch)
tree369e02549b3facf6aac2c9af3b995df07fa7581d /src/account-server/accounthandler.cpp
parenta92a2f3255e9b7eabedb8eec7e25cd80e82481fb (diff)
downloadmanaserv-fa901d1cb94cdd47cb066402ae7e478154113306.tar.gz
manaserv-fa901d1cb94cdd47cb066402ae7e478154113306.tar.bz2
manaserv-fa901d1cb94cdd47cb066402ae7e478154113306.tar.xz
manaserv-fa901d1cb94cdd47cb066402ae7e478154113306.zip
Reordered the manaserv.xml.example file and made related code cleanups.
Reviewed-by: Thorbjorn.
Diffstat (limited to 'src/account-server/accounthandler.cpp')
-rw-r--r--src/account-server/accounthandler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index ce3635b6..28b92024 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -46,7 +46,8 @@
static void addUpdateHost(MessageOut *msg)
{
- std::string updateHost = Configuration::getValue("defaultUpdateHost", "");
+ std::string updateHost = Configuration::getValue("net_defaultUpdateHost",
+ "");
msg->writeString(updateHost);
}
@@ -295,7 +296,7 @@ void AccountHandler::handleLoginMessage(AccountClient &client, MessageIn &msg)
const int clientVersion = msg.readLong();
- if (clientVersion < Configuration::getValue("clientVersion", 0))
+ if (clientVersion < Configuration::getValue("net_clientVersion", 0))
{
reply.writeByte(LOGIN_INVALID_VERSION);
client.send(reply);
@@ -436,7 +437,7 @@ void AccountHandler::handleRegisterMessage(AccountClient &client,
std::string password = msg.readString();
std::string email = msg.readString();
std::string captcha = msg.readString();
- int minClientVersion = Configuration::getValue("clientVersion", 0);
+ int minClientVersion = Configuration::getValue("net_clientVersion", 0);
unsigned minNameLength = Configuration::getValue("account_minNameLength", 4);
unsigned maxNameLength = Configuration::getValue("account_maxNameLength", 15);
@@ -670,7 +671,7 @@ void AccountHandler::handleCharacterCreateMessage(AccountClient &client,
int numGenders = Configuration::getValue("char_numGenders", 2);
unsigned int minNameLength = Configuration::getValue("char_minNameLength", 4);
unsigned int maxNameLength = Configuration::getValue("char_maxNameLength", 25);
- unsigned int maxCharacters = Configuration::getValue("char_maxCharacters", 3);
+ unsigned int maxCharacters = Configuration::getValue("account_maxCharacters", 3);
MessageOut reply(APMSG_CHAR_CREATE_RESPONSE);