Auto Cycle

By xDaeMoN on May 18, 2005

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

Comments

Sign in to comment.
xDaeMoN   -  Jan 11, 2006

Update: Used $comchan instead of $chan. Thanks to FiberOptics for clarifying the difference between the 2 identifiers.

 Respond  
xDaeMoN   -  May 28, 2005

Auto-identify? The main purpose of this snippet is to detect if you are alone in the channel(s) you are on & will do a hop. You could edit it to suit your needs.

 Respond  
Zashi   -  May 28, 2005

But couldnt you just edit the events thingie and make it auto-identify?

 Respond  
DarthReven   -  May 19, 2005

nice lil addion man

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.