From cb500636cc4fec86de6971cf4360875ae4278971 Mon Sep 17 00:00:00 2001 From: Ryan L Date: Tue, 27 Apr 2010 00:21:49 -0700 Subject: [PATCH] Fixed amx_ban (bug 4159, r=dvander, a=blocking). --- plugins/admincmd.sma | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/admincmd.sma b/plugins/admincmd.sma index 4d391fdf..f8bda245 100755 --- a/plugins/admincmd.sma +++ b/plugins/admincmd.sma @@ -390,7 +390,7 @@ public cmdAddBan(id, level, cid) server_cmd("addip ^"%s^" ^"%s^";wait;writeip", minutes, arg) console_print(id, "[AMXX] Ip ^"%s^" added to ban list", arg) } else { - server_cmd("banid ^"%s^" ^"%s^";wait;writeid", minutes, arg) + server_cmd("banid %s %s;wait;writeid", minutes, arg) console_print(id, "[AMXX] Authid ^"%s^" added to ban list", arg) } @@ -439,9 +439,9 @@ public cmdBan(id, level, cid) format(banned, 15, "%L", player, "BANNED") if (reason[0]) - server_cmd("kick #%d ^"%s (%s %s)^";wait;banid ^"%s^" ^"%s^";wait;writeid", userid2, reason, banned, temp, minutes, authid2) + server_cmd("kick #%d ^"%s (%s %s)^";wait;banid %s %s;wait;writeid", userid2, reason, banned, temp, minutes, authid2) else - server_cmd("kick #%d ^"%s %s^";wait;banid ^"%s^" ^"%s^";wait;writeid", userid2, banned, temp, minutes, authid2) + server_cmd("kick #%d ^"%s %s^";wait;banid %s %s;wait;writeid", userid2, banned, temp, minutes, authid2) // Display the message to all clients