1
0
Fork 0

OnLogin now kicks players properly (#3980)

This commit is contained in:
Alexander Harkness 2017-09-01 14:49:35 +01:00 committed by Mattes D
parent 896a3926cc
commit 7f2c0ef0d6
1 changed files with 2 additions and 1 deletions

View File

@ -722,9 +722,10 @@ bool cClientHandle::HandleLogin(const AString & a_Username)
// Let the plugins know about this event, they may refuse the player:
if (cRoot::Get()->GetPluginManager()->CallHookLogin(*this, m_ProtocolVersion, a_Username))
{
Destroy();
SendDisconnect("Login Rejected!");
return false;
}
m_State = csAuthenticating;
} // lock(m_CSState)