Code:
on @*:DEOP:#: { 
  if ($opnick == bojak || $opnick == kaytee) {
   mode # +o $opnick 
  }
} 

* the @ event prefix will make it trigger only if the client running the script (the bot) is currently oped
* $nick in the op/deop event refers to the nick giving/taking op. $opnick is the nick oped/deoped
* you want to set mode +o = give op