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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user