on 1000:text:kb*:?: {
if ($2 == $null) { .msg $nick Command incomplete. Syntax: /msg $me kb <#channel> <nick> [reason]. | halt }
if ($me !isop $2) { .msg $nick I'm not oped in $2 $+ . | closemsg $nick | halt }
if ($me !ison $2) { .msg $nick I'm not on that channel. | closemsg $nick | halt }
if (($2 !== $null) && ($3 == $null)) { .msg $nick You didn't specified the nickname to kick | closemsg $nick | halt }
if ($3 == $nick) { .msg $nick I will not kick ban you. | closemsg $nick | halt }
if ($3 == $me) { .msg $nick I will not kick ban myself. | closemsg $nick | halt }
if ($3 !ison $2) { .msg $nick $3 is not on $2 $+ . | closemsg $nick | halt }
if (($2 !== $null) && ($3 !== $null) && ($level($mask($address($3,2),2)) == 1000)) { .msg $nick I will not kick ban my owner. | halt }
if (($2 !== $null) && ($3 !== $null) && ($4 == $null)) { //mode $2 +b $mask($address($3,2),2)) | kick $2 $3 banned.. | closemsg $nick | halt }
if (($2 !== $null) && ($3 !== $null) && ($4 !== $null)) { //mode $2 +b $mask($address($3,2),2)) | kick $2 $3 $4- | closemsg $nick | halt }
}