Removed the two minute ip ban from sm_ban. (Two people on same ip will result in both of them getting ban for two minutes. When you only meant to ban one of them.).

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401203
This commit is contained in:
Phong Dang 2007-07-28 02:10:11 +00:00
parent 2fcf4e2567
commit e7b39faea7

View File

@ -221,7 +221,6 @@ public Action:Command_Ban(client, args)
GetCmdArg(2, s_time, sizeof(s_time));
new time = StringToInt(s_time);
new iptime = (time < 2 ? time : 2);
decl String:reason[128];
if (args >= 3)
@ -231,9 +230,8 @@ public Action:Command_Ban(client, args)
reason[0] = '\0';
}
decl String:authid[64], String:ip[50];
decl String:authid[64];
GetClientAuthString(target, authid, sizeof(authid));
GetClientIP(target, ip, sizeof(ip));
GetClientName(target, arg, sizeof(arg));
/* Fire the ban forward */
@ -273,7 +271,6 @@ public Action:Command_Ban(client, args)
strcopy(reason, sizeof(reason), "Banned");
}
ServerCommand("banip %d %s", iptime, ip);
ServerCommand("banid %d %s", time, authid);
KickClient(target, "%s", reason);