Permission-based player chat message formatting (#5304)
+ Permissions for chat message format access
This commit is contained in:
parent
7b0872aecc
commit
6bbbc52d02
@ -1550,7 +1550,14 @@ void cClientHandle::HandleChat(const AString & a_Message)
|
||||
Msg.AddTextPart(m_Player->GetName(), Color);
|
||||
Msg.ParseText(m_Player->GetSuffix());
|
||||
Msg.AddTextPart("> ");
|
||||
Msg.ParseText(Message);
|
||||
if (m_Player->HasPermission("chat.format"))
|
||||
{
|
||||
Msg.ParseText(Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
Msg.AddTextPart(Message);
|
||||
}
|
||||
Msg.UnderlineUrls();
|
||||
cRoot::Get()->BroadcastChat(Msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user