From 5581fd1692c56c5723bafbf0e9303a19c67cc948 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 31 Oct 2022 02:33:51 +0100 Subject: [PATCH] fix chat message impersonation issue instead of using the supplied name, we ignore it entirely and use the server's internal name for the client --- src/TServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TServer.cpp b/src/TServer.cpp index 1e02c50..2f02797 100644 --- a/src/TServer.cpp +++ b/src/TServer.cpp @@ -199,7 +199,8 @@ void TServer::GlobalParser(const std::weak_ptr& Client, std::vectorGetName(), Message); + Network.SendToAll(nullptr, StringToVector(SanitizedPacket), true, true); return; } case 'E': @@ -212,7 +213,6 @@ void TServer::GlobalParser(const std::weak_ptr& Client, std::vector