# HG changeset patch # User Adam Kaminski # Date 1642022063 18000 # Wed Jan 12 16:14:23 2022 -0500 # Node ID ce920358391d3ccf89f2f497b27dbb735b5a26e9 # Parent 81258376b30bdb15750fbb5e3f8334e29782311a Fixed: RCON clients still printed two copies of the chat message that they sent. diff -r 81258376b30b -r ce920358391d src/sv_main.cpp --- a/src/sv_main.cpp Wed Jan 12 15:49:13 2022 -0500 +++ b/src/sv_main.cpp Wed Jan 12 16:14:23 2022 -0500 @@ -1257,6 +1257,8 @@ message.Format( " ", players[ulPlayer].userinfo.GetName() ); } + // [AK] Don't print the same message twice for the current RCON client. + CONSOLE_ShouldPrintToRCONPlayer( false ); message.AppendFormat( "* %s%s", ulPlayer != MAXPLAYERS ? players[ulPlayer].userinfo.GetName() : "", pszString ); Printf( "%s\n", message.GetChars() ); } @@ -1271,6 +1273,8 @@ } else { + // [AK] Don't print the same message twice for the current RCON client. + CONSOLE_ShouldPrintToRCONPlayer( false ); Printf( "%s: %s\n", ulPlayer != MAXPLAYERS ? players[ulPlayer].userinfo.GetName() : "", pszString ); } }