Auto-Join channels after identify

By simo on Aug 08, 2018

join channels after u have identified for your registered nick just incase u have access on the channels you are joining to have u gaining access automated.

on 1:Connect:{ 
   if ($istok(dalnet freenode,$network,32)) { nick johnDoe24 | ns identify jh498kjfwjh2498 } ; example        
   if ($istok(undernet ,$network,32)) { nick johnDoe24 | .msg x@channels.undernet.org  login account password } ; example        
}

on *:notice:*:?:{
;for undernet  
  if ($regex($1-,/(.*AUTHENTICATION.*SUCCESSFUL.*)/Si) && $nick == X) {   
    if ($istok(undernet,$network,32)) { join #help,#lounge,#chat }  ; example          
  }
  ;for other networks  
    if ($regex($1-,/(.*Password.*accepted.*|.*you.*identified.*)/Si) && $nick == nickserv) {   
    if ($istok(dalnet freenode,$network,32)) { join #help,#lounge,#chat }  ; example        
  }
}

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.