Prevent being able to use colour codes to bypass swear filters, fixes #388

This commit is contained in:
UnknownShadow200 2017-09-25 20:22:30 +10:00
parent db38c019e6
commit 26d3137877

View File

@ -89,6 +89,8 @@ namespace MCGalaxy {
static string Reduce(string text) {
text = text.ToLower();
text = Colors.Strip(text);
for (int i = 0; i < reduceKeys.Length; i++)
text = text.Replace(reduceKeys[i], reduceValues[i]);
return text;