Fixed incorrect parameter name in the Unban method (from @ip to @0) which was causing ban removals to fail.
This commit is contained in:
parent
2eeabb4c2f
commit
19df6bb009
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
TShock, a server mod for Terraria
|
TShock, a server mod for Terraria
|
||||||
Copyright (C) 2011 The TShock Team
|
Copyright (C) 2011 The TShock Team
|
||||||
|
|
||||||
|
|
@ -125,7 +125,7 @@ namespace TShockAPI.DB
|
||||||
{
|
{
|
||||||
try
|
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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue