Merge branch 'general-devel' of github.com:TShock/TShock into general-devel

This commit is contained in:
Lucas Nicodemus 2011-07-22 15:09:32 -06:00
commit 481a34f722

View file

@ -59,9 +59,10 @@ namespace TShockAPI.DB
if (File.Exists(file2))
File.Delete(file2);
File.Move(file, file2);
com.CommandText = "SELECT *FROM ItemBans";
}
com.CommandText = "SELECT * FROM ItemBans";
using (var reader = com.ExecuteReader())
{
while (reader.Read())
@ -108,6 +109,7 @@ namespace TShockAPI.DB
public bool ItemIsBanned(string name)
{
System.Console.WriteLine(name);
if (ItemBans.Contains(name))
return true;