From 19abb5b68c209ef6dce458c99e2613406cec8047 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 30 Mar 2021 01:50:57 +0200 Subject: [PATCH] add quotes around player names to clarify further in thread name debug prints --- src/TNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TNetwork.cpp b/src/TNetwork.cpp index 5b7f7d5..f6a5e4a 100644 --- a/src/TNetwork.cpp +++ b/src/TNetwork.cpp @@ -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& ClientPtr) -> bool {