Code:
on *:join:#channelname: { 
 if ($nick == nickname) || ($nick == nick) { mode $chan +o $nick }
}

Its very simple, to add another nickname just copy and paste
|| ($nick == nick) on the end of it and add the nick