you have missed placed brackets an have things in the wrong place in ur snippet.
In keeping with your original code, and so you can understand here is an working example an nothing more then that.
you may want to add error checks to it as well
on @*:TEXT:*:#:{
if ($nick(#,$nick,oh)) {
tokenize 32 $strip($1-)
if ($1 = .kick) {
kick # $2 $iif($3-,$v1,No Reason)
.notice $nick $2 Has been kicked!
}
elseif ($1 = .ban) {
mode # +b $address($2,2)
.notice $nick $2 Has been Banned
}
elseif ($1 = .kb) {
ban -k # $2 2 $iif($3-,$v1,No Reason)
.notice $nick $2 Has been kicked and banned.
}
elseif ($1 = .Mod) {
mode # +m
.msg # This Channel is + strick moderet voice only
}
elseif ($1 = .unMod) {
mode # -m
.msg # The moderation voice has now been de active.
}
}
}