on *:op:#: {
.notice $opnick You just got oped by $nick
}
the . hides the notice from you, no need to see every time a user get oped.
This trigger on all channels you are on, to just set one channel use: on *:op:#channel: {
where you replace #channel with the channel name you want.