ok i have it set up for multiple servers and i use the perform list to do everything. however my annoyance is when the first server gets disconnected and reconnected it also reloads all the other servers again. my perform is sort of like this:
so now even if the connections to servers 2 and 3 are fine, server one will get disconnected and reconnected then load up servers 2 and 3 in different windows with my alternate nick. i want it to like detect if theres already a connection to servers 2 and 3 and if theyre connected then not try to connect again. or is there a way to have them seperate so they all connect on startup of mirc but not start the whole connection process if the first one gets disconnected then reconnects.
the variable $scon(0) says how many networks your are connected to.
the values of $scon(1) through $scon(x) contain the network names. You can use this information in a script you call in perform to determine what networks you are connected to and then connect to the one (or ones) that are not connected when one (or more) drops off.
Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
I find it better to use the ON START event to do auto-connects when you start mIRC. I also put the code itself in an alias wich I call from the ON START event, so I can always call it again later if I canceled the initial auto-connect:
Code:
on *:start: {
window -xa "Status Window"
autoconnect
}
alias autoconnect {
if ($?!="AutoConnect all: ?") {
server irc.server1.org -i nick1 nick2
server -m irc.server2.org -i othernick1 othernick2
server -m irc.etc.net
}
}
it's *not* drawn out to use the script editor to connect to multiple servers
Code:
on *:START: {
server SERVER1.com -j #autojoin,#channels,#here -i NICK ALTNICK
server -m SERVER2.com -j #autojoin,#channels,#here -i NICK ALTNICK
server -m SERVER3.com -j #autojoin,#channels,#here -i NICK ALTNICK
...
}
then you can put the nickserv auth in perform or an on connect event:
Code:
on *:CONNECT: {
if ($network == X) msg Nickserv IDENTIFY blah
if ($network == Y) ...
}
This keeps them all separate from each other and doesn't have any side effects if any connection dies.
- argv[0] on EFnet #mIRC - "Life is a pointer to an integer without a cast"