you could make it ez then that. you dont really need if ($2 ison #) . cuz why would you mode someone not in the chan?
on @*:text:`lolop *:#:{ if ($nick(#,$nick,oh) && $2 != $me) { mode # +o-o $str($2 $chr(32),2) } }
or
on @*:text:`lolop *:#:{ if ($nick isop # && $2 != $me) { mode # +o-o $2 $2 } }