From e7b39faea705d303810cfe081d7c697655452770 Mon Sep 17 00:00:00 2001 From: Phong Dang Date: Sat, 28 Jul 2007 02:10:11 +0000 Subject: [PATCH] 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 --- plugins/basecommands.sp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/basecommands.sp b/plugins/basecommands.sp index 29347199..bdbb0a9c 100644 --- a/plugins/basecommands.sp +++ b/plugins/basecommands.sp @@ -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);