Code:
 on @*:text:!op*:#: $iif($read(accesslist.txt,ns,$nick),mode # +o $iif(!$2,$nick,$2)) 


Very similar to my response to your other post, but with this one getting the nicks from the file accesslist.txt rather than a variable