I have a bot that is supposed to kick and ban anybody when I type:
.kb username

For some reason, the bot doesn't ban and just kicks the person. I don't know what is wrong with my script. Please help me. It would be appreciated. Thank you.

Here is the script.

Quote:
on opaccess:TEXT:.kb*:#:{
if (!$2) { /msg # Please specify a person for me to kick/ban. }
else { set %kickban $2 }
if (!$3) { set %text $nick }
else { set %text $3- }
mode # +b %kickban
kick # %kickban %text
}