OnLogin now kicks players properly (#3980)
This commit is contained in:
parent
896a3926cc
commit
7f2c0ef0d6
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user