From 7f2c0ef0d6de72402bf87b6a31a8e7a392c27576 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Fri, 1 Sep 2017 14:49:35 +0100 Subject: OnLogin now kicks players properly (#3980) --- src/ClientHandle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 67d6c9772..c6ecb293d 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -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) -- cgit v1.2.3