Auto Rejoin

By Yoinx on Dec 04, 2004

I wrote this on the forum for someone, figured I'd post it. I think it's a bit pointless though.... Just don't get banned in the first place.

This snippet it used to make mirc keep trying to join a channel until you get in, In case of being banned mostly. It will try every minute for two hours.

/rejoin #channel to start it manually
/rejoin #channel off to turn it off manually

It will auto start on kick and turn off when you join the channel. Also, It will work for as many channels as you want.

alias rejoin { 
  if ( $2 == $null ) { 
    set $($+(%,rejoin.,$1)) 1 
    .$($+(timer.rejoin.,$1)) 120 60 /join $1 
  } 
  if ( $2 == off ) { 
    unset $($+(%,rejoin.,$1)) 
    .$($+(timer.rejoin.,$1)) off 
  } 
} 

on *:JOIN:#: { 
  if ( $nick == $me ) { 
    if ( $($+(%,rejoin.,$chan)) != $null ) { 
      .$($+(timer.rejoin.,$chan)) off 
      unset $($+(%,rejoin.,$chan)) 
    } 
  } 
}  

on *:kick:#: { 
  if ( $knick == $me ) { 
    rejoin $chan 
  } 
} 

Comments

Sign in to comment.
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.