Skip to content

Commit

Permalink
2.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
terminator-97 committed Jan 31, 2021
1 parent 4e52167 commit 7d3de2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SCPUtils/Functions/Functions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ public bool CheckNickname(string name)

foreach (var nickname in pluginInstance.Config.BannedNickNames)
{
//name = Regex.Replace(name, "[^a-zA-Z0-9]", "").ToLower();
//string pattern = Regex.Replace(nickname.ToLower(), "[^a-zA-Z0-9]", "");
if (Regex.Match(name, nickname).Success) return true;
if (Regex.Match(name.ToLower(), nickname.ToLower()).Success) return true;
}
return false;
}
Expand Down

0 comments on commit 7d3de2a

Please sign in to comment.