Revision | ce769866bb7eba6c2d840700ced20a815267a984 (tree) |
---|---|
Time | 2022-01-13 06:14:23 |
Author | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
Fixed: RCON clients still printed two copies of the chat message that they sent.
@@ -1257,6 +1257,8 @@ | ||
1257 | 1257 | message.Format( "<From %s> ", players[ulPlayer].userinfo.GetName() ); |
1258 | 1258 | } |
1259 | 1259 | |
1260 | + // [AK] Don't print the same message twice for the current RCON client. | |
1261 | + CONSOLE_ShouldPrintToRCONPlayer( false ); | |
1260 | 1262 | message.AppendFormat( "* %s%s", ulPlayer != MAXPLAYERS ? players[ulPlayer].userinfo.GetName() : "<Server>", pszString ); |
1261 | 1263 | Printf( "%s\n", message.GetChars() ); |
1262 | 1264 | } |
@@ -1271,6 +1273,8 @@ | ||
1271 | 1273 | } |
1272 | 1274 | else |
1273 | 1275 | { |
1276 | + // [AK] Don't print the same message twice for the current RCON client. | |
1277 | + CONSOLE_ShouldPrintToRCONPlayer( false ); | |
1274 | 1278 | Printf( "%s: %s\n", ulPlayer != MAXPLAYERS ? players[ulPlayer].userinfo.GetName() : "<Server>", pszString ); |
1275 | 1279 | } |
1276 | 1280 | } |