DarkCoder, why would you say the code's not bad? (I hope that's not an insult to the author) The bad part is it will make the bot running the code to kick the person who initiates the triggers via the on text event, instead of whom he or she commands the client to kick or ban for. Other than a couple of missing brackets, it should be corrected as such:
on @*:TEXT:*:#: {
if ($nick isop #) {
if ($1 == !kb) { $iif($2 ison #,ban -k $v2 $v1 5 $read(insults.txt)) }
if ($1 == !kick) { $iif($2 ison #,kick $v2 $v1 $read(insults.txt)) }
}
}
And for the on input:
on @*:INPUT:#: {
if ($1 == .k) { $iif($2 ison #,kick $v2 $v1 $read(insults.txt)) }
if ($1 == .kb) { $iif($2 ison #,ban -k $v2 $v1 5 $read(insults.txt)) }
}
For the on input, though, I'd recommend the use of aliases...