mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2006
Posts: 3
F
febdyna Offline OP
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Apr 2006
Posts: 3
i'm using mirc 6.16 with nnscript 3.81

I use the following code to connect to multiple servers.

Code:
on *:start:{
  server psybncserver password -j #chan1, #chan2
  server -m someotherircserver -j #chan1, #chan2
}


i have 2 problems:

1: I have 2 bnc accounts at 1 server, so 2 different idents are needed for me to connect to those. how can i set different idents for each bnc?

2. when i connect to the same server twice i get a nick collision because they try to connect at the same time. is there anyway to specify an own nickname for each server? or to put a delay for the connection of server/bnc2?

thnx for your time!

grtz Arjen

Last edited by febdyna; 25/04/06 12:25 PM.
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Code:
on *:START:{
  server server1.network2.com -nNick1,Anick1 -j#chan1,#chan2
  server -m server2.network1.com -nNick2,Anick2 -j#chan1,#chan2
  server -m server1.network2.com -nNick3,Anick3 -j#chan1,#chan2
}

on *:CONNECT:{
  if (($network == network1) && ($me == nick1)) /identify1
  elseif (($network == network1) && ($me == nick2)) /identify2
  elseif (($network == network2) && ($me == nick3)) /identify3
}

(untested)

-genius_at_work

Joined: Apr 2006
Posts: 3
F
febdyna Offline OP
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Apr 2006
Posts: 3
Problem 2 is solved, thnx!

Problem 1
but the following code doesnt do the trick or i'm to noob to it right :P

Code:
on *:CONNECT:{
  if (($network == bnc1) && ($me == feb`dyna)) /dyna
  elseif (($network == bnc2) && ($me == feb`dyn)) /dynamic
  elseif (($network == network1) && ($me == feb`dyn)) /dyna
}


i'm probably doing something wrong myself.

Again thnx for you time

grtz Arjen

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Where you are putting "bnc1" you need to put the actual value that is returned by $network for that server. To find that out, connect to one of the servers manually and type this command:

//echo -a $network

It should display the network name for that server. Simply copy that network name into the correct line in the onCONNECT code above.

Example:

/server irc.efnet.net
(after connected)
//echo -a $network
(displays "efnet" without quotes)
(copy "efnet" into the code below)
Code:
on *:CONNECT:{
  if (($network == [color:red]efnet[/color]) && ($me == feb`dyna)) /dyna
  elseif (($network == dalnet) && ($me == feb`dyn)) /dynamic
  elseif (($network == afternet) && ($me == feb`dyn)) /dyna
}


-genius_at_work

Joined: Apr 2006
Posts: 3
F
febdyna Offline OP
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Apr 2006
Posts: 3
thank you very much. it works now.

grtz Arjen


Link Copied to Clipboard