Jethro commented on a Page, Question Responder and ! Responder!  -  Jun 17, 2010

Spammer!!! /me kicks Bielie silly like a spam smered between two slices of bread.

Biellie, you can combine those two text events into this:

on $*:text:/(\B[!?]\B|[!.]add)/iS:#:{
  if (!%spam) { inc -u4 %spam
    if ($istok(!add|.add,$regml(1),124)) && (!$2) {
      notice $nick Please provide a line to add!
    }
    elseif ($istok(! ?,$regml(1),32)) { 
      notice $nick $iif($isfile(text.txt),$read(text.txt),text.txt is not found!)
    }
    else {
      notice $nick Added $+(",$2-,") to the list.
      write text.txt $2-
    }
  }
}

Might want to add a check to see if the text.txt exists or not...along with a trigger control so you don't get spammed upon spamming. lol

 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.