OnLogin now kicks players properly (#3980)

This commit is contained in:
Alexander Harkness
2017-09-01 15:49:35 +02:00
committed by Mattes D
parent 896a3926cc
commit 7f2c0ef0d6
+2 -1
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)