Clean up /itemban, /projban and tempbans

This commit is contained in:
MarioE 2014-07-02 10:51:06 -04:00
parent 6d3bb30c7c
commit 3e12e80a89
3 changed files with 184 additions and 194 deletions

View file

@ -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;
}