Doh! Fixed ban not kicking players.

This commit is contained in:
ricky 2011-06-08 19:07:28 +10:00
parent 1d45cc671d
commit 51b4b29728

View file

@ -254,7 +254,7 @@ namespace TShockAPI
string ip = GetPlayerIP(plr);
string playerName = Main.player[plr].name;
TShock.Bans.AddBan(ip, playerName, reason);
if (!Main.player[plr].active || Netplay.serverSock[plr].kill)
if (Main.player[plr].active || !Netplay.serverSock[plr].kill)
NetMessage.SendData(0x2, plr, -1, "Banned: " + reason, 0x0, 0f, 0f, 0f);
Log.Info("Banned " + playerName + " for : " + reason);
if (adminUserName.Length == 0)