if ($nick isowner $chan) refers to the !. Its undocumented as is the on OWNER event which as you can guess is like on OP or on VOICE but triggers then a user gains ownership.