add quotes around player names to clarify further in thread name debug

prints
This commit is contained in:
Lion Kortlepel 2021-03-30 01:50:57 +02:00
parent dd5b0bdd6d
commit 19abb5b68c

View File

@ -296,7 +296,7 @@ void TNetwork::Authentication(SOCKET TCPSock) {
return;
}
RegisterThread("(" + std::to_string(Client->GetID()) + ") " + Client->GetName());
RegisterThread("(" + std::to_string(Client->GetID()) + ") \"" + Client->GetName() + "\"");
debug("Name -> " + Client->GetName() + ", Guest -> " + std::to_string(Client->IsGuest()) + ", Roles -> " + Client->GetRoles());
debug("There are " + std::to_string(mServer.ClientCount()) + " known clients");
mServer.ForEachClient([&](const std::weak_ptr<TClient>& ClientPtr) -> bool {