Fixed Ban not checking socket status correctly.

Fixed unban/unbanip for real this time
This commit is contained in:
high 2011-06-08 06:44:53 -04:00
parent d23db067e9
commit e66c57450a
2 changed files with 5 additions and 4 deletions

View file

@ -279,7 +279,7 @@ namespace TShockAPI
public static void UnBan(CommandArgs args)
{
string plStr = args.Message.Remove(0, 6);
string plStr = args.Message.Remove(0, 7);
int adminplr = args.PlayerID;
var ban = TShock.Bans.GetBanByName(plStr);
if (ban != null)
@ -295,7 +295,7 @@ namespace TShockAPI
public static void UnBanIP(CommandArgs args)
{
string plStr = args.Message.Remove(0, 8);
string plStr = args.Message.Remove(0, 9);
int adminplr = args.PlayerID;
var ban = TShock.Bans.GetBanByIp(plStr);
if (ban != null)