mIRC Home    About    Download    Register    News    Help

Print Thread
#106891 05/01/05 08:30 AM
Joined: Jan 2005
Posts: 3
C
Chorei Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jan 2005
Posts: 3
I have the following setup with Trillian....

I connect to three different IRC servers all with different nicknames.

In Trillian I can connect to all three on start-up with no extra info to add, the rooms appear as if by magic on my screen in a few seconds.

Sadly Trillian lacks the features in IRC that I as a NA value and indeed require so much so I have had to look for alternatives to this program from my major IRC needs.

Can mIRC.....

Perform seperate join commands for seperate servers? (yes)
Connect to three different servers on start-up?
Can each of those servers have different usernames?

If this is possible I would massively appreciate someone advising me how this is done.

Thank you for your time and congratulations on what looks to be a very good program smile

#106892 05/01/05 09:03 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:Start: {
  server server.one address -j #channel1
  server -m server.two.address -j #channel2
  server -m server.three.address -j #channel3
}

on *:Connect: {
  if ($server == server.one.address) { nick Whatever }
  if ($server == server.two.address) { nick Whatever }
  if ($server == server.one.address) { nick Whatever }
}

#106893 05/01/05 09:07 AM
Joined: Jan 2005
Posts: 3
C
Chorei Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jan 2005
Posts: 3
Thanks Andy but where how would I use that.

Apologies, I am a novice to mIRC and scripting.

#106894 05/01/05 09:11 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Nope, my apologies. Press Alt and R to open mIRC script editor. Then paste it in.

#106895 05/01/05 09:44 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
The /server command has an -i switch for entering userinfo
Code:
on *:start:{
  server server.one [color:green]-i nick1 altnick1 email@oneadress.com full name[/color] -j #channel1,#chan2
  server -m server.two.address [color:green]-i nick2 altnick2 email2@2adress.com another fullname[/color] -j #channel2
  server -m server.three.address [color:green]-i nick3 altnick3 email3@3rd.adr.ess fullname[/color]-j #chan1,#channel3
}

#106896 05/01/05 09:44 AM
Joined: Jan 2005
Posts: 3
C
Chorei Offline OP
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Jan 2005
Posts: 3
Okay I have it connecting me to all three servers which is brilliant but I appear to have lost the commands which I had pre-programmed in such as....

Server 1
/oper name password
/ns identify password
/j #blah
/j #blah1
/j #blah2

Server 2
/ns identfy password
/j #blah

Server 3
/j #blah

Sorry to be a pain but it seems to have wiped out the preferences I previously had.

#106897 05/01/05 10:16 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:Connect: { 
  if ($server == server.one.address) { 
    oper name password
    ns identify password
    j #blah
    j #blah1
    j #blah2
  }  
  if ($server == server.two.address) { 
    ns identfy password
    j #blah
  }  
  if ($server == server.one.address) { 
    j #blah
  }
}

#106898 05/01/05 10:22 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on *:start:{

  ; connect to server one
  [color:green]server server.one.et [color:red]-i nick1 altnick1 email@oneadress.com full name[/color][/color]

  ; connect to server two with a different identity
  [color:blue]server -m server.two.address [color:red]-i nick2 altnick2 email2@2adress.com another fullname[/color][/color]

  ; connect to server three, and join #blah
  [color:gray]server -m server.three.address [color:red]-i nick3 altnick3 email3@3rd.adr.ess fullname[/color] [color:navy]-j #blah[/color][/color]
}

on *:connect:{

  ; server one - identify etc
  [color:green]if $server == server.one.et {
    oper name password
    ns identify password
    join #blah,#blah1,#blah2
  }[/color]

  ; server two - identify etc
  [color:blue]elseif $server == server.two.address {
    ns identfy password
    join #blah
  }[/color]
}


Link Copied to Clipboard