summaryrefslogtreecommitdiff
path: root/src/account-server/accounthandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-02-24 13:53:53 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-02-24 13:55:43 +0100
commit5ea5371434b76fc7511db4fa5b72e34046497943 (patch)
tree5706052096835f8f9aab19775fc633f681088a70 /src/account-server/accounthandler.cpp
parentf207bb487da57911350e037d5f894a037fbd74eb (diff)
downloadmanaserv-5ea5371434b76fc7511db4fa5b72e34046497943.tar.gz
manaserv-5ea5371434b76fc7511db4fa5b72e34046497943.tar.bz2
manaserv-5ea5371434b76fc7511db4fa5b72e34046497943.tar.xz
manaserv-5ea5371434b76fc7511db4fa5b72e34046497943.zip
Forgot two config key renames and a little style fix
Diffstat (limited to 'src/account-server/accounthandler.cpp')
-rw-r--r--src/account-server/accounthandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index cca17be9..a0369201 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -195,7 +195,8 @@ static void handleLoginMessage(AccountClient &computer, MessageIn &msg)
return;
}
- if (accountHandler->getClientNumber() >= (unsigned)Configuration::getValue("net_maxClients", 1000) )
+ unsigned maxClients = (unsigned)Configuration::getValue("net_maxClients", 1000);
+ if (accountHandler->getClientNumber() >= maxClients)
{
reply.writeByte(ERRMSG_SERVER_FULL);
computer.send(reply);