what are you doing? you do not need the if stuf...
Code:
on @30:op:*: { mode $chan -o $opnick }
on @30:serverop:*: { mode $chan -o $opnick }