mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2018
Posts: 8
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2018
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.

Joined: Sep 2018
Posts: 1
A
Mostly harmless
Offline
Mostly harmless
A
Joined: Sep 2018
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
} 

Last edited by ArThuR; 06/09/18 10:40 AM.
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
Joined: Sep 2018
Posts: 8
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2018
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

Joined: Aug 2003
Posts: 319
P
Pan-dimensional mouse
Offline
Pan-dimensional mouse
P
Joined: Aug 2003
Posts: 319
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.

Joined: Oct 2019
Posts: 1
M
Mostly harmless
Offline
Mostly harmless
M
Joined: Oct 2019
Posts: 1
your account is set to not accept PM's, but I'm interested in that script.

Joined: Jan 2007
Posts: 5
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Jan 2007
Posts: 5
How do i connect to multiple channels with key?

Code
on *:start: {
  server efnet.port80.se:6667 -j #chan1 key1,#chan2 key2
}

doesnt work. it only joins 1st channel+key

Joined: Feb 2015
Posts: 138
kap Offline
Vogon poet
Offline
Vogon poet
Joined: Feb 2015
Posts: 138
According to https://en.wikichip.org/wiki/mirc/commands/server this should work:

Code
on *:start: {
  server efnet.port80.se:6667 -j #chan,#chan2 key1,key2
}


Note: Use * to specify no key is needed for that channel.


GNU Terry Pratchett - Looking for a mIRC help channel -> Check #mircscripting @ irc.swiftirc.net
Joined: Jan 2007
Posts: 5
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Jan 2007
Posts: 5
thx a lot, works now. smile

Joined: Dec 2019
Posts: 3
T
Self-satisfied door
Offline
Self-satisfied door
T
Joined: Dec 2019
Posts: 3
Okay, I have this for more networks. If you want auto nickserv and oper password to be automatic, this works well!

on *:CONNECT:{
if ($network == Network1) {
nickserv identify password
oper username password
join #chan1,#chan2,#chan3
}

elseif ($network == Network2) {
nickserv identify ...
join #chan,#chan2,#chan3,...
}
;and so on
}


Link Copied to Clipboard