Removed TShock.Config.EnableBanOnUsernames check from GetBanByName so that it can be used internally for queries
This commit is contained in:
parent
862a06e820
commit
0c13716b84
1 changed files with 0 additions and 4 deletions
|
|
@ -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)";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue