guest598594 commented on a Page, Bot Commands  -  Nov 29, 2008

You could have just done this and saved some time (I haven't tested it myself yet, but I'm pretty sure it should work) :

on :input::{
if ( $1 == +v ) { mode $chan +v $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == -v ) { mode $chan -v $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == +h ) { mode $chan +h $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == -h ) { mode $chan -h $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == +o ) { mode $chan +o $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == -o ) { mode $chan -o $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == +a ) { mode $chan +a $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == -a ) { mode $chan -a $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == +q ) { mode $chan +q $2 } $msg $chan $2 You can't tell me what to do, Fool.
if ( $1 == -q ) { mode $chan -q $2 } $msg $chan $2 You can't tell me what to do, Fool.
}
Or simply:

on *:input:#:{
  if ($regex($1,/^[+-][vhoaq]$/)) {
    mode $chan $1-2
    msg $chan You can't tell me what to do, Fool.
  }
}
 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.