Fixing some guest login issues.

This commit is contained in:
lotodore
2009-11-15 09:02:00 +00:00
parent 3a323b7c19
commit a7888f324d
2 changed files with 14 additions and 12 deletions
+6
View File
@@ -959,7 +959,10 @@ ServerLobbyThread::HandleNetPacketInit(SessionWrapper session, const InitMessage
}
}
if (!validGuest)
{
SessionError(session, ERR_NET_INVALID_PLAYER_NAME);
return;
}
}
#ifdef POKERTH_OFFICIAL_SERVER
else if (initMessage.login.present == login_PR_authenticatedLogin)
@@ -983,7 +986,10 @@ ServerLobbyThread::HandleNetPacketInit(SessionWrapper session, const InitMessage
}
#endif
else
{
SessionError(session, ERR_NET_INVALID_PASSWORD);
return;
}
// Check whether the player name is correct.
// Partly, this is also done in netpacket.