Fixed chat message manipulation by plugins.
Plugins, in their OnChat hook, can change the chat message sent by a player.
This commit is contained in:
@@ -1473,7 +1473,7 @@ void cClientHandle::HandleChat(const AString & a_Message)
|
||||
Color.clear();
|
||||
}
|
||||
Msg.AddTextPart(AString("<") + m_Player->GetName() + "> ", Color);
|
||||
Msg.ParseText(a_Message);
|
||||
Msg.ParseText(Message);
|
||||
Msg.UnderlineUrls();
|
||||
m_Player->GetWorld()->BroadcastChat(Msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user