Jethro commented on a Page, Insult After You Kick  -  Dec 26, 2009

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...

 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.