Added a config option (default off) for banning by usernames.

This commit is contained in:
Lucas Nicodemus 2011-07-21 12:39:01 -06:00
parent 529f51d95e
commit 3744e49592
2 changed files with 5 additions and 0 deletions

View file

@ -102,6 +102,10 @@ namespace TShockAPI.DB
public Ban GetBanByName(string name, bool casesensitive = true)
{
if (!TShock.Config.EnableBanOnUsernames)
{
return null;
}
try
{
using (var com = database.CreateCommand())