gooshie commented on a Page, AutoOpScript  -  Nov 20, 2009

Jethro,
LOL.. be yourself and Jetify it!..
just a couple tweeks..
no need for ! on join the @ takes care of that..
when you do on/off things.. if you use 1/0 then
you can do as follows.. also if its shorter and
doesnt matter rearrange it for positive logic to
make it easier to read..

on @*:JOIN:#:if (%op) .mode # +o $nick
alias op {
  set -e %op $iif(%op,0,1)
  echo -a * $iif(%op,AutoOp has been turned on.,AutoOp has been turned off.) 
}

Another way to go would be to script the aop
function in the control tab of the address book
something like this:

Menu Nicklist {
  -
  AutoOpScript is $+([,$iif($aop,on,off),]):$iif($aop,aop off,aop on)
  $iif($aop($+($gettok($address($1,5),1,64),@*)),Remove $1 From AutoOp,Add $1 To AutoOp):$iif($aop($+($gettok($address($1,5),1,64),@*)),aop -r $+($gettok($address($1,5),1,64),@*) # $network,aop $+($gettok($address($1,5),1,64),@*) # $network)
} 

Sorry for the long folded line

 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.