firstly you do not need:
if ($chan)
secondly if it is for op's only you should really have it like this:
on @:TEXT:!tease:#:{ raw -q MODE # +o-o $2 $2 }
Much shorter and easier to process.