summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp3
1 files changed, 2 insertions, 1 deletions
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)