Thanks, but I have one last question, how would I get it to do an if command

IE on *:TEXT:!1out &:#: {
if ($nick isop #kryptonica) { msg $chan /unban $2 }
msg # $2 has been timed out for 1 minute.
}

Say a moderator has tried to timeout a moderator, How would I get it so that this will say 'msg # $2 is a moderator and can only be timed out by the owner'