1
0

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:
Mattes D 2015-05-13 18:45:29 +02:00
parent f36b00f4d4
commit 2cdc2a16e4

View File

@ -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);
}