According to what he wrote, he wants it to occur when HE types it, which would require on INPUT. At least that is how I read it. In that case, you would do this:
on 1:INPUT:#:{
if ($1 == specialop! && $me isvoice $chan && $me isop $chan) { mode $chan -v $me }
if ($1 == specialop! && $me isop $chan) { mode $chan -o $me }
}
No need to change anything in the code, just type specialop! in any channel you are opped on.
Last edited by adazh; 05/09/05 03:54 PM.