Autojoin System

By xplo on Sep 25, 2009

Its simple, just read the whole script before installing.

YOU NEED TO EDIT IT FOR YOUR OWN NEEDS!!!

For help join #mircscripting on irc.undernet.org and talk to Seb
or email xplorer@mircscripting.info

(EDITED) for channels with +k modes

###############
#Auto join/login/start script from xplo
# some lines are commented with ; 
# remove the ; to use them.
#for help email xplorer@mircscripting.info
###############

#This is the START event, triggered when you start mirc.
#change the lines with ; if you want to join multiple networks. 
###########
on *:START:{ 
  server irc.undernet.org 
 ;server -m irc.SOMEOTHERNETWORK.org
 ;server -m IRC.SOMEWHEREELSE.org
}

#here you can set your username and pass
#Add more lines for other network using X. 
#if its not X just change the loging line as you like
##########
alias xloginundernet { .msg x@channels.undernet.org login USERNAME PASS }
;alias xloginOTHERNET { .msg nickserv  login USERNAME PASS }
;alias xloginOTHERNET2 { .msg nickserv  login USERNAME PASS }

#here you need to put your channels (max 9)
##########
alias joinchannels { 
  if (Undernet == $network) { .join -n #chan1,#chan2,#chan3,#chan4 }
 ;if (OTHERNETWORK == $network) { .join -n #chan1,#chan2,#chan3,#chan4 }
 ;if (OTHERNETWORK2 == $network) { .join -n #chan1,#chan2,#chan3,#chan4 }
}

#Join +k Channels
##################
alias joinKchans {
  if (UNDERNET == $network) { 
    .join -n #chan <key here>
    .join -n #chan <key here>
  }
  if (OTHERNET == $network) { 
    .join -n #chan <key here>
    .join -n #chan <key here> 
  }
  if (OTHERNET2 == $network) { 
    .join -n #chan <key here>
    .join -n #chan <key here> 
  }
}

#This is the inviting alias
#made to invite you in the channels where you have 100+ access to bypass targets.
#make sure not to add more then 8 invites
###########
alias invitemein { 
  if (Undernet == $network) { .msg x invite #chan1 | .msg x invite #chan2 | .msg x invite #chan3 }
  ;if (OTHERNET == $network) { .msg x invite #chan1 | .msg x invite #chan2 | .msg x invite #chan3 }
}

#Connect event
################
on *:connect:{ 
  if (Undernet == $network) { mode $me +ix | silence +*!*@*,~*!*@*undernet.org | xloginundernet } 
 ;if (OTHERNETWORK == $network) { mode $me +ix | xloginOTHERNET }  
}

#This is the RAW used to see you connected to the server
#it will trigger the auto join of channels only if you connected proprelly.
###########
raw 001:*:{ 
  .timerjoin $+ $network 1 10 joinchannels 
  .timerjoin $+ $network 1 10 joinKchans 
}

#this line is important. if X invites you. you will join.
#just don't erase it.
###########

on *:invite:#:{ if ($nick == x) { join -n $chan | halt } }

;EOF

Comments

Sign in to comment.
xplo   -  Sep 26, 2009

Scarecrow i added the alias for joining +k channels :)

thnx, i had forgot about it :p

 Respond  
Matt5150   -  Sep 26, 2009

if (Undernet == $network) { .join -n #chan1,#chan2,#chan3,#chan4 }
if a channel is +k? lol

 Respond  
xplo   -  Sep 26, 2009

Jethro_ yeah there is one, but its more "clean" this way, where you have all your server connects nicks / infos and somewhere else you have your channels.

:)

we all code in different ways.

 Respond  
Jethro   -  Sep 25, 2009

I think there is a -j switch for the server command, which acts for the function of the join command.

 Respond  
xplo   -  Sep 25, 2009

Feel free to do flames !!

 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.