This would be useful when you want to regain ops when you are alone in the channel(s) you are on. It would check each channel every 3 seconds.
Copy/Paste in your remotes section (ALT-R -> FILE -> NEW)
; If you want to start the timer without re-connecting, do this
; /timeracycle 0 3 acycle
alias acycle {
var %c = 1, %chan
while $comchan($me,%c) {
%chan = $v1
if ( $nick(%chan,0) == 1 ) && ( $me !isop %chan ) hop -c %chan
inc %c
}
}
on *:CONNECT: .timeracycle 0 3 acycle