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:
parent
f36b00f4d4
commit
2cdc2a16e4
@ -1473,7 +1473,7 @@ void cClientHandle::HandleChat(const AString & a_Message)
|
|||||||
Color.clear();
|
Color.clear();
|
||||||
}
|
}
|
||||||
Msg.AddTextPart(AString("<") + m_Player->GetName() + "> ", Color);
|
Msg.AddTextPart(AString("<") + m_Player->GetName() + "> ", Color);
|
||||||
Msg.ParseText(a_Message);
|
Msg.ParseText(Message);
|
||||||
Msg.UnderlineUrls();
|
Msg.UnderlineUrls();
|
||||||
m_Player->GetWorld()->BroadcastChat(Msg);
|
m_Player->GetWorld()->BroadcastChat(Msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user