Fuzionx commented on a Page, bot type on kick  -  Oct 29, 2011

You might want to change your code to:

on *:text:!kon *:#: { 
  if ($nick isop $chan && $$2 ison $chan) {
    set %kick $2 
    msg $chan $2 next time you get talk you will be kicked 
  }
}

Hence the space between !kon and the *, and the $$2. This makes sure $2, the nickname, is set and that it is in your channel.

You should also combine those three text events.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.