Jethro commented on a Page, Church script on request  -  Jun 24, 2010

Like napa said, you really need to test your code before submitting it. Anyway, your script can be written as such with a simple if-then-else statement (Yes, one if statement with && operators):

on $*:text:/^[!.](church)/Si:#:{
  if ((!%flood [ $+ [ $nick ] ]) && ($chan != #chan) && (!$exists(church.txt))) {
    set -eu3 %flood [ $+ [ $nick ] ] x
    notice $nick An error occured; I can't find the data located in my directory!
  }
  else {
    inc %church
    msg # $nick went to the $regml(1) and $read(church.txt) $+ . $&
      $nick has used this command %church $iif(%church > 1,times,time) $+ .
  }
}
 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.