1
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

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: // Let the plugins know about this event, they may refuse the player:
if (cRoot::Get()->GetPluginManager()->CallHookLogin(*this, m_ProtocolVersion, a_Username)) if (cRoot::Get()->GetPluginManager()->CallHookLogin(*this, m_ProtocolVersion, a_Username))
{ {
Destroy(); SendDisconnect("Login Rejected!");
return false; return false;
} }
m_State = csAuthenticating; m_State = csAuthenticating;
} // lock(m_CSState) } // lock(m_CSState)