Removed TShock.Config.EnableBanOnUsernames check from GetBanByName so that it can be used internally for queries

This commit is contained in:
stevenh 2012-02-13 18:41:44 +00:00
parent 862a06e820
commit 0c13716b84

View file

@ -92,10 +92,6 @@ throw new Exception("Could not find a database library (probably Sqlite3.dll)");
public Ban GetBanByName(string name, bool casesensitive = true) public Ban GetBanByName(string name, bool casesensitive = true)
{ {
if (!TShock.Config.EnableBanOnUsernames)
{
return null;
}
try try
{ {
var namecol = casesensitive ? "Name" : "UPPER(Name)"; var namecol = casesensitive ? "Name" : "UPPER(Name)";