summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2017-09-01 15:49:35 +0200
committerMattes D <github@xoft.cz>2017-09-01 15:49:35 +0200
commit7f2c0ef0d6de72402bf87b6a31a8e7a392c27576 (patch)
treefa2b86de2314514ce215af8166e1f62119731c37 /src/ClientHandle.cpp
parentReturn to cuberite/polarssl for mbedtls submodule (#3982) (diff)
downloadcuberite-7f2c0ef0d6de72402bf87b6a31a8e7a392c27576.tar
cuberite-7f2c0ef0d6de72402bf87b6a31a8e7a392c27576.tar.gz
cuberite-7f2c0ef0d6de72402bf87b6a31a8e7a392c27576.tar.bz2
cuberite-7f2c0ef0d6de72402bf87b6a31a8e7a392c27576.tar.lz
cuberite-7f2c0ef0d6de72402bf87b6a31a8e7a392c27576.tar.xz
cuberite-7f2c0ef0d6de72402bf87b6a31a8e7a392c27576.tar.zst
cuberite-7f2c0ef0d6de72402bf87b6a31a8e7a392c27576.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-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)