napa182 commented on a Page, Chatspace Inputs  -  Feb 16, 2010

you can make this part

 on *:INPUT:#:{
  if ($1 == .op) {
    if (!$2) mode $chan +o $me
    if ($2) mode $chan +o $2
  }
  if ($1 == .deop) {
    if (!$2) mode $chan -o $me
    if ($2) mode $chan -o $2
  }
  if ($1 == .voice) {
    if (!$2) mode $chan +v $me
    if ($2) mode $chan +v $2
  }
  if ($1 == .devoice) {
    if (!$2) mode $chan -v $me
    if ($2) mode $chan -v $2
  }
  if ($1 == .aop) {
    if (!$2) services aop $chan ADD $me
    if ($2) services aop $chan ADD $2
  }
  if ($1 == .sop) {
    if (!$2) services sop $chan ADD $me
    if ($2) services sop $chan ADD $2
  }
  if ($1 == .vop) {
    if (!$2) services vop $chan ADD $me
    if ($2) services vop $chan ADD $2
  }
  if ($1 == .delaop) {
    if (!$2) services aop $chan DEL $me
    if ($2) services aop $chan DEL $2
  }
  if ($1 == .delsop) {
    if (!$2) services sop $chan DEL $me
    if ($2) services sop $chan DEL $2
  }
  if ($1 == .delvop) {
    if (!$2) services vop $chan DEL $me
    if ($2) services vop $chan DEL $2
  }
  if ($1 == .owner) {
    if (!$2)  mode $chan +q $me
    if ($2) mode $chan +q $2
  }
  if ($1 == .deowner) {
    if (!$2)  mode $chan -q $me
    if ($2) mode $chan -q $2
  }

into this

 if ($1 == .op) { mode $chan +o $iif($2,$2,$me) }
  if ($1 == .deop) { mode $chan -o $iif($2,$2,$me) }
  if ($1 == .voice) { mode $chan +v $iif($2,$2,$me) }
  if ($1 == .devoice) { mode $chan -v $iif($2,$2,$me) }
  if ($1 == .aop) { services aop $chan ADD $iif($2,$2,$me) }
  if ($1 == .sop) { services sop $chan ADD $iif($2,$2,$me) }
  if ($1 == .vop) { services vop $chan ADD $iif($2,$2,$me) }
  if ($1 == .delaop) { services aop $chan DEL $iif($2,$2,$me) }
  if ($1 == .delsop) { services sop $chan DEL $iif($2,$2,$me) }
  if ($1 == .delvop) { services vop $chan DEL $iif($2,$2,$me) }
  if ($1 == .owner) { mode $chan +q $iif($2,$2,$me) }
  if ($1 == .deowner) { mode $chan -q $iif($2,$2,$me) }

but you may want to add haltdef unless you want it to be seen on the channel and if you do it will mode then say it unless you use a timer. you will see it as command first then mode but others will see mode first then command.

 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.