summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorVincent <vincent.leung60@gmail.com>2014-11-29 20:22:03 +0100
committerVincent <vincent.leung60@gmail.com>2014-11-29 20:22:03 +0100
commita7bf2725c8bd5f8ec3e03584af87a7055cb15a60 (patch)
treebc377133bef0483cadea4a211ee2e541222dcd58 /src/ClientHandle.cpp
parentissue 1253 - prevent multiple logins with same username (diff)
downloadcuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.gz
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.bz2
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.lz
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.xz
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.tar.zst
cuberite-a7bf2725c8bd5f8ec3e03584af87a7055cb15a60.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index ae794d7cb..3c06f3401 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -1798,16 +1798,16 @@ bool cClientHandle::HandleHandshake(const AString & a_Username)
return false;
}
}
- if (!(cRoot::Get()->GetServer()->isAllowMultiLogin()))
+ if (!(cRoot::Get()->GetServer()->IsAllowMultiLogin()))
{
- std::list<std::string> usernamesServer = cRoot::Get()->GetServer()->GetUsernames();
- std::list<std::string> usernamesWorld = cRoot::Get()->GetDefaultWorld()-> GetUsernames();
+ std::list<AString> usernamesServer = cRoot::Get()->GetServer()->GetUsernames();
+ std::list<AString> usernamesWorld = cRoot::Get()->GetDefaultWorld()-> GetUsernames();
usernamesServer.sort();
usernamesWorld.sort();
usernamesServer.merge(usernamesWorld);
- for (std::list<std::string>::iterator itr = usernamesServer.begin(); itr != usernamesServer.end(); ++itr)
+ for (std::list<AString>::iterator itr = usernamesServer.begin(); itr != usernamesServer.end(); ++itr)
{
if ((*itr).compare(a_Username) == 0)
{