The script i use deops the whole room fine and the follow on such as mode change and topic change is also fine.

This is the mass deop script i am using.

alias mop {
/set %m 1
:jump1
/set %mnick $nick(#,%m)
if (%mnick == $null) { halt | /unset %except }
if (%mnick == %except) { /inc %m | goto jump1 }
if (%mnick >= a) { /mode # +o %mnick }
inc %m
goto jump1
}

It all works fine what i need to know is how to intiate this script when i enter a channel.

Anyone got any ideas ?

Many Thanks
Phoenix_UK