When you join a channel, and you are opped. It messages the channel telling the person that opped you Thank You and then it tells the channel how many times you have been opped. Instead of parting and joining the channel to show how many times you have been opped. I have added a messager.
on *:OP:#:{
if ($opnick == $me) { inc %optimes | msg $chan 9,1<--> 14Thanks for the op $nick 9,1<--> 14OpCount: %optimes }
else { halt }
}
menu channel,status,menubar {
.OpCount
..Message Channel:/msg $chan 14OpCount: %optimes
..Message All Channels:/amsg 14OpCount: %optimes
..Echo To Your Self:/echo 14OpCount: %optimes
}