1
0
forked from mirrors/0ad

Don't show warning on aichat messages

AI's chat messages are always received by every client. It's not
necesarry to warn about them.

Defect introduced in e04506814a.
Refs: #7466
This commit is contained in:
phosit
2025-01-09 18:48:12 +01:00
committed by phosit
parent fde696a401
commit 8292b0c646
@@ -113,7 +113,7 @@ class ChatMessageFormatPlayer
msg.context = addresseeType.context;
// For observers only permit public- and observer-chat and PM to observers
if (isPlayerObserver(senderID))
if (msg.player === undefined && isPlayerObserver(senderID))
{
if (isPM && !g_IsObserver)
{