Code:
 
replace: if ($me isop $comchan($1,%i)) 
 with if ($comchan($1,%i).op)