1
0
Fork 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
1 changed files with 1 additions and 1 deletions

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