summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent <vincent.leung60@gmail.com>2014-12-09 23:23:44 +0100
committerVincent <vincent.leung60@gmail.com>2014-12-09 23:23:44 +0100
commit3a2759fdc1a2c7282bd90a1f545fa1effae2728b (patch)
treec8152c7400bf4c00b4b7b4b765e011b2e5312d33
parentFixed indent problems and added return definitions to CheckMultiLogin(). (diff)
downloadcuberite-3a2759fdc1a2c7282bd90a1f545fa1effae2728b.tar
cuberite-3a2759fdc1a2c7282bd90a1f545fa1effae2728b.tar.gz
cuberite-3a2759fdc1a2c7282bd90a1f545fa1effae2728b.tar.bz2
cuberite-3a2759fdc1a2c7282bd90a1f545fa1effae2728b.tar.lz
cuberite-3a2759fdc1a2c7282bd90a1f545fa1effae2728b.tar.xz
cuberite-3a2759fdc1a2c7282bd90a1f545fa1effae2728b.tar.zst
cuberite-3a2759fdc1a2c7282bd90a1f545fa1effae2728b.zip
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 6812c06ac..87dc27f8f 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1816,8 +1816,9 @@ bool cClientHandle::CheckMultiLogin(const AString & a_Username)
if (cRoot::Get()->DoWithPlayer(a_Username, Callback))
{
Kick("A player of the username is already logged in");
+ return false;
}
- return false;
+ return true;
}