From b4ff754e29bf563af181b5e376cc8be096fe6b27 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 3 Aug 2007 15:46:50 +0000 Subject: [PATCH] Implemented amb340 - amx_ban / amx_banip now display reason in the show_activity blurb. Language files need synced. --- plugins/admincmd.sma | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/admincmd.sma b/plugins/admincmd.sma index 94118129..bb56c730 100755 --- a/plugins/admincmd.sma +++ b/plugins/admincmd.sma @@ -464,6 +464,10 @@ public cmdBan(id, level, cid) { formatex(msg[len], charsmax(msg) - len, "%L", i, "PERM"); } + if (strlen(reason) > 0) + { + formatex(msg[len], charsmax(msg) - len, " (%L: %s)", i, "REASON", reason); + } show_activity_id(i, id, name, msg); } } @@ -537,6 +541,10 @@ public cmdBanIP(id, level, cid) { formatex(msg[len], charsmax(msg) - len, "%L", i, "PERM"); } + if (strlen(reason) > 0) + { + formatex(msg[len], charsmax(msg) - len, " (%L: %s)", i, "REASON", reason); + } show_activity_id(i, id, name, msg); } }