mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -04:00
Prevent being able to use colour codes to bypass swear filters, fixes #388
This commit is contained in:
parent
db38c019e6
commit
26d3137877
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user