Things that need to be done
- Move
BlockedStrings to its own txt, read this txt on server load and load it into a variable in the server
- Add more curse words to the
BlockedStrings
- Add option to PrEvEnT mEsSaGeS lIkE tHIS
- Add option to PREVENT MESSAGES IN ALL CAPS
- Add option to disable blocking curse words
- All curse words should be replaced with different variations of meow (e.g. meowww, meoww, meowwww, purrr)
|
// Remove any trailing spaces at start and end |
|
message = message.Trim(); |
|
|
|
// Swear filter |
|
foreach (var blockedString in BlockedStrings) |
|
message = message.Replace(blockedString, "meowww"); |
Things that need to be done
BlockedStringsto its own txt, read this txt on server load and load it into a variable in the serverBlockedStringsserver/src/Server/Packets/Handle/HandlePacketChatMessage.cs
Lines 38 to 43 in 1cddd5b