referrencing therat's example:
on @:op:#mar-ops: {
if ($nick == $me) { set %opped %opped $opnick }
}
See how it all fits together? if you have more if statements that you want to fire when you're the one who opped somebody you'd use (totally made up code):
on @:op:#mar-ops: {
if ($nick == $me) {
if ($nick == hello-there) { command1 }
if ($me == Bossman) { msg # Bossman says know your role }
}
}