summaryrefslogtreecommitdiff
path: root/src/account-server/accounthandler.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-31 09:29:13 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-31 09:29:13 +0000
commite681c0024c1db3f93c501a0a9600371440986674 (patch)
treee54b5cb5870f1fad23929170072e7fcdbac71461 /src/account-server/accounthandler.cpp
parent99e14d41865086107ec9d69ce725d98d522e448a (diff)
downloadmanaserv-e681c0024c1db3f93c501a0a9600371440986674.tar.gz
manaserv-e681c0024c1db3f93c501a0a9600371440986674.tar.bz2
manaserv-e681c0024c1db3f93c501a0a9600371440986674.tar.xz
manaserv-e681c0024c1db3f93c501a0a9600371440986674.zip
Cleaned a bit more.
Diffstat (limited to 'src/account-server/accounthandler.cpp')
-rw-r--r--src/account-server/accounthandler.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index dd39dce5..8c69b066 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -505,15 +505,15 @@ AccountHandler::handleCharacterCreateMessage(AccountClient &computer,
{
reply.writeByte(ERRMSG_INVALID_ARGUMENT);
}
- else if (hairStyle < 0 || hairStyle > MAX_HAIRSTYLE_VALUE)
+ else if (hairStyle > MAX_HAIRSTYLE_VALUE)
{
reply.writeByte(CREATE_INVALID_HAIRSTYLE);
}
- else if (hairColor < 0 || hairColor > MAX_HAIRCOLOR_VALUE)
+ else if (hairColor > MAX_HAIRCOLOR_VALUE)
{
reply.writeByte(CREATE_INVALID_HAIRCOLOR);
}
- else if (gender < 0 || gender > MAX_GENDER_VALUE)
+ else if (gender > MAX_GENDER_VALUE)
{
reply.writeByte(CREATE_INVALID_GENDER);
}
@@ -721,9 +721,6 @@ AccountHandler::tokenMatched(AccountClient *computer, int accountID)
void
AccountHandler::deletePendingClient(AccountClient* computer)
{
- // Something might have changed since it was inserted
- if (computer->status != CLIENT_QUEUED) return;
-
MessageOut msg(APMSG_CONNECTION_TIMEDOUT);
computer->disconnect(msg);
// The computer will be deleted when the disconnect event is processed