diff options
author | Alexander Harkness <me@bearbin.net> | 2017-09-01 15:49:35 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-09-01 15:49:35 +0200 |
commit | 7f2c0ef0d6de72402bf87b6a31a8e7a392c27576 (patch) | |
tree | fa2b86de2314514ce215af8166e1f62119731c37 /src/ClientHandle.cpp | |
parent | Return to cuberite/polarssl for mbedtls submodule (#3982) (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/ClientHandle.cpp | 3 |
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) |