alias kb {
if (!$chan) {
echo -a no channel
return
}
if ($0 < 2) {
echo -a not enough parameters
return
}
var %i = 2, %n = $1 + 1, %r = $eval($+($,$calc(%n + 1),-),2)
while ($eval($ $+ %i,2) != $null) && (%i <= %n) {
if ($v1 isop $chan) { echo -a no podes }
else { ban -k $chan $v1 2 %r }
inc %i
}
}