diff options
Diffstat (limited to 'source/Protocol125.cpp')
-rw-r--r-- | source/Protocol125.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/Protocol125.cpp b/source/Protocol125.cpp index 4f162dab6..7047f1f30 100644 --- a/source/Protocol125.cpp +++ b/source/Protocol125.cpp @@ -974,10 +974,9 @@ int cProtocol125::ParseHandshake(void) LOGD("HANDSHAKE %s", Username.c_str());
- if (cRoot::Get()->GetDefaultWorld()->GetNumPlayers() >= cRoot::Get()->GetDefaultWorld()->GetMaxPlayers())
+ if (!m_Client->HandleHandshake( m_Username ))
{
- m_Client->Kick("The server is currently full :(-- Try again later");
- return PARSE_OK;
+ return PARSE_OK; // Player is not allowed into the server
}
SendHandshake(cRoot::Get()->GetServer()->GetServerID());
|