Fixed incorrect parameter name in the Unban method (from @ip to @0) which was causing ban removals to fail.

This commit is contained in:
Lycaonj 2011-07-30 22:35:36 -05:00
parent 2eeabb4c2f
commit 19df6bb009

View file

@ -1,4 +1,4 @@
/*
/*
TShock, a server mod for Terraria
Copyright (C) 2011 The TShock Team
@ -125,7 +125,7 @@ namespace TShockAPI.DB
{
try
{
return database.Query("DELETE FROM Bans WHERE IP=@ip", ip) != 0;
return database.Query("DELETE FROM Bans WHERE IP=@0", ip) != 0;
}
catch (Exception ex)
{