Optional profanity filter

This commit is contained in:
Vortrex
2022-07-26 02:16:05 -05:00
parent c486c00a02
commit 13cf75262a
4 changed files with 16 additions and 3 deletions

View File

@@ -44,6 +44,10 @@ function loadPausedStatusFont() {
// ===========================================================================
function updatePlayerNameTag(clientName, characterName, colour, paused, ping) {
if (profanityFilterEnabled) {
characterName = replaceProfanityInMessage(characterName);
}
playerNames[clientName] = characterName;
playerColours[clientName] = colour;
playerPaused[clientName] = paused;