;FoxBlitzz's Simple AutoJoin Script 1.02 ; ;Put the below code in the Remote section of the mIRC Scripts Editor. ;%autojoin.myname, %autojoin.ghostname, and %autojoin.nspass are all variables. ;You must define them in the Variables section of the Scripts Editor. ; ;Example: ; ;%autojoin.myname BillyBob ;%autojoin.ghostname BillyBo ;%autojoin.nspass thispasswordisnotverycreative ; ;Also, you will need to change server.mynetwork.net and #MyChannel, #MyOtherChannel ;to the IRC network and channels you want to join. ; ;NOTICE! YOU MUST RESTART mIRC TO ENSURE THAT THE SCRIPT WILL WORK CORRECTLY! ; ;///////////////////// ; SCRIPT BEGINS BELOW ;///////////////////// on *:start: connect alias connect { /server server.mynetwork.net -i %autojoin.ghostname %autojoin.ghostname } on *:connect: { /timer 1 1 hub } alias hub { if ( $me == %autojoin.ghostname ) { /timer 1 1 ghost } if ( $me == %autojoin.myname ) { /timer 1 1 join } } alias ghost { if ( $me == %autojoin.ghostname ) { /msg NickServ ghost %autojoin.myname %autojoin.nspass /timer 1 1 /nick %autojoin.myname /timer 1 1 join } } alias join { if ( $me == %autojoin.myname) { /msg NickServ identify %autojoin.nspass /join #MyChannel /join #MyOtherChannel } elseif ( $me == %autojoin.ghostname ) { ghost } }