fixed naming of strings and changed from i to I
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user