guest598594 commented on a Page, Warning script  -  Sep 08, 2008

You can combine some of these if statements. Example:

if ($nick isop $chan || $nick ishop $chan) {
  notice $2 you now have a strike...
  notice $nick you have issued a strike...
}

And then with

  if (%strike. [ $+ [ $2- ] ] == 3) notice $nick $2- has 3 strikes, which is kbable, so go ahead
  if (%strike. [ $+ [ $2- ] ] == 3) set %strike. [ $+ [ $2- ] ] 

You can combine them:

  if (%strike. [ $+ [ $2- ] ] == 3) {
    notice $nick $2- has 3 strikes, which is kbable, so go ahead
    set %strike. [ $+ [ $2- ] ] 
  }

Just use brackets { } and you can put multiple things in one if statement.

 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.