napa182 commented on a Page, !remove script   -  Oct 01, 2010

=/

this made me laugh tho...

;;;ITS 100% MY OWN WORK;;;;;;;;;

there are so many diff ways of making something like this you can do it like this as well..

#rem on
on $*:TEXT:/^!remove\s(.+)/iS:#: {
  if (!%f) {
    inc -u4 %f
    var %r $len($regml(1))
    while (%r >= 1) {
      msg # $left($regml(1),%r)
      dec %r 1
    }
  }
}
#rem end
menu channel {
  Turn Remove script $iif($group(#rem) = on,Off,On):{
    $+(.,$iif($group(#rem) = on,dis,en),able) #rem
    msg # !remove is now $group(#rem)
  }
}

and you can add more then 1 word

<~napa182> !remove hello to you
<&Sick0> hello to you
<&Sick0> hello to yo
<&Sick0> hello to y
<&Sick0> hello to
<&Sick0> hello to
<&Sick0> hello t
<&Sick0> hello
<&Sick0> hello
<&Sick0> hell
<&Sick0> hel
<&Sick0> he
<&Sick0> h

or if you still only want it for only 1 word then change the (.+) in the text event to (\S+)

 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.