you can use the commands to help operate a channel. must have op status for it to work though. must go into vars and set %owner as your nick in order for it to work.. :l
on *:text:!*:*:{
if ( $nick != %owner ) { Halt }
if ( $nick == %owner ) {
if ( $1 == !Op ) { /mode # +ooo $2 $3 $4 }
if ( $1 == !DeOp ) { /mode # -ooo $2 $3 $4 }
if ( $1 == !Halfop ) { /mode # +hhh $2 $3 $4 }
if ( $1 == !DeHalfop ) { /mode # -hhh $2 $3 $4 }
if ( $1 == !Voice ) { /mode # +vvv $2 $3 $4 }
if ( $1 == !DeVoice ) { /mode # -vvv $2 $3 $4 }
if ( $1 == !Kick ) { /cs kick # $2 $3- }
if ( $1 == !Talk ) { msg $2 $3- }
if ( $1 == !Access ) { /cs access # add $2 $3 }
if ( $1 == !Mute ) { mode $chan +b-v ~q: [ $+ [ $address($2,2) ] ] $2 }
if ( $1 == !UnMute ) { mode $chan -b+v ~q: [ $+ [ $address($2,2) ] ] $2 }
}
}
Or
On *:Text:*:#:{
if ($nick == %owner) {
if ($1 == !Op) { /mode # $+(+,$str(o,6)) $2- }
elseif ($1 == !DeOp) { /mode # $+(-,$str(o,6)) $2- }
elseif ($1 == !Halfop) { /mode # $+(+,$str(h,6)) $2- }
elseif ($1 == !DeHalfop) { /mode # $+(-,$str(h,6)) $2- }
elseif ($1 == !Voice) { /mode # $+(+,$str(v,6)) $2- }
elseif ($1 == !DeVoice) { /mode # $+(-,$str(v,6)) $2- }
elseif ($1 == !Kick ) { /cs kick # $2- }
elseif ($1 == !Talk) || ($1 == msg) { msg $2 $3- }
elseif ($1 == !Access) { /cs access $chan add $2- }
elseif (mute isin $1) { mode $chan $iif(un !isin $1,+b-v,-b+v) $+(~q:,$address($2,2)) $2 }
else { }
}
}
I think that this could be improved a little.
On *:Text:*:#:{
if ($nick == %owner) {
if ($1 == !Op) { /mode # $+(+,$str(o,6)) $2- }
if ($1 == !DeOp) { /mode # $+(-,$str(o,6)) $2- }
if ($1 == !Halfop) { /mode # $+(+,$str(h,6)) $2- }
if ($1 == !DeHalfop) { /mode # $+(-,$str(h,6)) $2- }
if ($1 == !Voice) { /mode # $+(+,$str(v,6)) $2- }
if ($1 == !DeVoice) { /mode # $+(-,$str(v,6)) $2- }
if ($1 == !Kick ) { /cs kick # $2- }
if ($1 == !Talk) || ($1 == msg) { msg $2 $3- }
if ($1 == !Access) { /cs access $chan add $2- }
if (mute isin $1) { mode $chan $iif(un !isin $1,+b-v,-b+v) $+(~q:,$address($2,2)) $2 }
}
}
You could you else and elseif like:
on *:text:*:#: {
if ( $nick == %owner ) {
if ( $1 == !Op ) { /mode # +ooo $2 $3 $4 }
elseif ( $1 == !DeOp ) { /mode # -ooo $2 $3 $4 }
elseif ( $1 == !Halfop ) { /mode # +hhh $2 $3 $4 }
elseif ( $1 == !DeHalfop ) { /mode # -hhh $2 $3 $4 }
elseif ( $1 == !Voice ) { /mode # +vvv $2 $3 $4 }
elseif ( $1 == !DeVoice ) { /mode # -vvv $2 $3 $4 }
elseif ( $1 == !Kick ) { /cs kick # $2 $3- }
elseif ( $1 == !Talk ) { msg $2 $3- }
elseif ( $1 == !Access ) { /cs access # add $2 $3 }
elseif ( $1 == !Mute ) { mode $chan +b-v ~q: [ $+ [ $address($2,2) ] ] $2 }
elseif ( $1 == !UnMute ) { mode $chan -b+v ~q: [ $+ [ $address($2,2) ] ] $2 }
else { }
}
}