Clean up /itemban, /projban and tempbans
This commit is contained in:
parent
6d3bb30c7c
commit
3e12e80a89
3 changed files with 184 additions and 194 deletions
|
|
@ -893,7 +893,7 @@ namespace TShockAPI
|
|||
var sb = new StringBuilder(3);
|
||||
for (int i = 0; i < str.Length; i++)
|
||||
{
|
||||
if (char.IsDigit(str[i]) || (str[i] == '-' || str[i] == '+'))
|
||||
if (Char.IsDigit(str[i]) || (str[i] == '-' || str[i] == '+'))
|
||||
sb.Append(str[i]);
|
||||
else
|
||||
{
|
||||
|
|
@ -921,6 +921,8 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
}
|
||||
if (sb.Length != 0)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue