cant you just use
if (($nick isop #) || ($nick ishop #)) {
and on the +a you can use
($nick isprotect #)
i dont know if there is a ($nick isowner $chan) identifier i dont see one but who knows lol
and maybe set it up so you can add diff channels you want it to work on eh just a thought...Oh and nice work btw