why so much stuff for a kick ban?? why not just do..
on *:INPUT:#:{ if ($me isop # && $1 == !kb) { inc %kick.count | ban -k # $2 4 %kick.count }