/server server1 -j #chan1,#chan2
/server -m server2 #chan1,#chan2
/server -m server3 #chan1,#chan2
to pheonix:
Actually, you cannot use perform for that. The code you pasted above has been used here before and will cause a endless loop. Perform is triggered when you connect. So the moment you connect to the first network, it will trigger all three. The moment you connect to the second, you trigger all three, etc.
to Sampo:
Instead, use the following code in your remotes (this has been tested to work...)
on *:START: {
server [color:blue]servername-for-network-1[/color]
server -m [color:blue]servername-for-network-2[/color]
server -m [color:blue]servername-for-network-3[/color]
}
on *:CONNECT: {
if ($network == [color:blue]networkname-1[/color]) {
scid $cid
nick [color:blue]nick-for-network-1[/color]
join [color:blue]#channel1[/color],[color:blue]#channel2[/color]
}
if ($network == [color:blue]networkname-2[/color]) {
scid $cid
nick [color:blue]nick-for-network-1[/color]
join [color:blue]#channel1[/color],[color:blue]#channel2[/color]
}
if ($network == [color:blue]networkname-3[/color]) {
scid $cid
nick [color:blue]nick-for-network-1[/color]
join [color:blue]#channel1[/color],[color:blue]#channel2[/color] }
}
Just replace the parts in blue.....