diff options
author | Vincent <vincent.leung60@gmail.com> | 2014-12-07 21:41:42 +0100 |
---|---|---|
committer | Vincent <vincent.leung60@gmail.com> | 2014-12-07 21:41:42 +0100 |
commit | 8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5 (patch) | |
tree | 2f011e702fe85b6372445a157e15c48894f2ed3e /src/ClientHandle.cpp | |
parent | removed GetUsernames() from World (diff) | |
download | cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.gz cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.bz2 cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.lz cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.xz cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.tar.zst cuberite-8edfd7829505d43c7d6bf7fcc582e0d7cb29e1d5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index f63754aab..94126d496 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1803,9 +1803,9 @@ bool cClientHandle::HandleHandshake(const AString & a_Username) { std::list<AString> usernamesServer = cRoot::Get()->GetServer()->GetUsernames(); - for (std::list<AString>::iterator itr = usernamesServer.begin(); itr != usernamesServer.end(); ++itr) + for (auto item : usernamesServer) { - if ((*itr).compare(a_Username) == 0) + if ((item).compare(a_Username) == 0) { Kick("User already logged in."); return false; |