mIRC Home    About    Download    Register    News    Help

Topic Options
#263701 - 06/09/18 11:25 AM Auto connect and join channels
Shamrock Offline
Nutrimatic drinks dispenser

Registered: 06/09/18
Posts: 8
I've been using a script to auto connect and join:

Code:
on *:START:{
  server irc.somename.net -j #chat
  server ircnet.org -j #blah

}


I want to add another channel to one of the servers, so it joins 2 channels on one of the servers with the same nick. I can't seem to get anything to work. It either just joins one of the channels or joins the second one with another nick.

Anyone help out? Thanks.

Top
#263702 - 06/09/18 11:39 AM Re: Auto connect and join channels [Re: Shamrock]
ArThuR Offline
Mostly harmless

Registered: 06/09/18
Posts: 1
cause you use only server command, for joining another server you should use this command => /server -m YourServer

So It's Mean you should change your codes to:

Code:
 on *:START:{
  server irc.somename.net -j #chat
  server -m ircnet.org -j #blah
} 


Edited by ArThuR (06/09/18 11:40 AM)

Top
#263704 - 07/09/18 03:04 AM Re: Auto connect and join channels [Re: Shamrock]
Raccoon Offline
Hoopy frood

Registered: 18/02/03
Posts: 2594
ArThuR does address the glaring problem with your script, so that you can now connect to two different servers at the same time. But in the off chance you also wanted to join a second or third channel on either of those two servers, just separate the channel names with a comma.

Code:
server    SavedGroup  -j #mirc,#irchelp,#chat
server -m irc.foo.bar -j #politics,#computers

If you want different nicknames on each server, include the -i switch.

Code:
server    SavedGroup  -j #mirc,#irchelp,#chat -i Rob Rob- robert@noemail My Name is Robert
server -m irc.foo.bar -j #politics,#computers -i Bob Bob` bob@noemail My Name is Bobert

If you save your servers into mIRC's server list, grouping them by network name, you can also store additional settings like NickServ login password. In the above examples, SavedGroup references a saved server group.

You currently cannot store a chosen nickname for a server in mIRC's saved servers, so that's where the -i switch comes in handy above.
-i $mnick $anick $email $fullname
_________________________
Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Top
#263705 - 07/09/18 10:55 AM Re: Auto connect and join channels [Re: Raccoon]
Shamrock Offline
Nutrimatic drinks dispenser

Registered: 06/09/18
Posts: 8
Thanks guys. I am using the -m to join more that one server - forgot to type it above.

I see now why it wasn't connecting to more than one channel, I was putting comma space ", " between each channel name.

Working perfect now smile

Top
#263710 - 08/09/18 10:29 AM Re: Auto connect and join channels [Re: Shamrock]
Protopia Offline
Fjord artisan

Registered: 30/08/03
Posts: 226
Loc: UK
I have a generic autoconnect script which looks at your favourites for channels which are marked as autojoin, and makes an automatic connection to the server so you can autojoin.

Start mirc - and it connects to all the servers and joins all the channels.

If you would like a copy, please PM me with your email address.

Top