Regain Ops

By ldcrew on Dec 12, 2006

when all are out from a channel it rejoins to gain Op's

#general_opwatch on

on *:quit:{
  var %c,%o = $comchan($nick,0) | while (%o) {
    %c = $comchan($nick,%o)
    if (($nick(%c,0) == 2) && ($me !isop %c)) { hopping %c }
    dec %o
  }
}
on !*:part:#:{
  if (($nick($chan,0) == 2) && ($me !isop $chan)) { hopping $chan }
}

alias -l hopping {
  ; $1 = channel
  echo $1 $timestamp * Attempting to Regaining Op's
  hop -cn $1
}

#general_opwatch end

Comments

Sign in to comment.
AHBARAR   -  Jun 03, 2007

Well its good thing but wht if the room registered to some 1 else it will stay hopping all day with no success!!!

 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.