From d8f39d821a648e4e1e4452c644ea6d476e19f946 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sat, 2 Aug 2014 12:41:30 +0200 Subject: [PATCH] allow kick/ban reasons to have up to 20 spaces without fuss --- config/admin.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/admin.cfg b/config/admin.cfg index abe992d3..f8e38018 100644 --- a/config/admin.cfg +++ b/config/admin.cfg @@ -1,7 +1,7 @@ persistidents 0 -const kick [ callvote 0 $arg1 $arg2 ] -const ban [ callvote 1 $arg1 $arg2 ] +const kick [if $numargs [if (> $numargs 1) [loop i (- $numargs 2) [alias arg2 (concat $arg2 (getalias (concatword arg (+ $i 3)))) ] ] [] ; callvote 0 $arg1 $arg2 ] ] +const ban [if $numargs [if (> $numargs 1) [loop i (- $numargs 2) [alias arg2 (concat $arg2 (getalias (concatword arg (+ $i 3)))) ] ] [] ; callvote 1 $arg1 $arg2 ] ] const removebans [ callvote 2 $arg1 ] const mastermode [ callvote 3 $arg1 ] const autoteam [ callvote 4 $arg1 ]