Also thinking about it, maybe there could be a $islevel() as well? $islevel(<nick>,<chan>,<char>|,<prefix>)
meaning: $islevel(codemastr,#test,o)
$islevel(codemastr,#test,@) both would have the same effect.