mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 10
X
Xeon Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Apr 2003
Posts: 10
I go under a different alias on another network I frequent and was wondering if it was possible for me to change name on connection?

}
if ($network == Internet1 ) {
nick AtticusII
join #channel1, #channel 2
}


That appears to work but I just want to make sure everything is valid!

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
you could just put the /nick nickname into the perform specific to that network (well i dont see why you cant at least)

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Code:

on *:CONNECT: {
  if ($network == Internet1) {
    nick AtticusII
    join #channel1, #channel 2
  }
}



place this in a new remote script file ( ALT+R > remote > file > new )


If it ain't broken, don't fix it!
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Or just put the nick information in the /server command, using the -i switch.

on *:START:{
  • server DALnet -i PrimaryNick AlternateNick Email[/b]@[/b]addy FullName
    server -m EFnet -i OtherPrimaryNick OtherAlternateNick OtherEmail[/b]@[/b]address OtherFullName
}

/help /server
cool


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
That wont let him connect at his descression tho, however it is the best scripted method, Maybe an alias for the network would

alias dalnet server $iif($1,new,-m) DALnet -i PrimaryNick AlternateNick [email]Email@addy[/email] FullName
alias EFnet server $iif($1,new,-m) Efnet -i OtherPrimaryNick OtherAlternateNick [email]OtherEmail@address[/email] OtherFullName

/dalnet connects current connection to dalnet
/dalnet new connects new connection to dalnet

I still thought a /NICK command in the perorm on connect for the specific network was best.

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
That is, in fact, what I do, though I use the server name I wish to connect to as the name of the alias, which includes the IP:port as well (to keep from having to resolve the IP first) and all information for all paramaters. My on START event calls those aliases.

Also, your $iif() should read $iif($1 == new,-m) .. mine just uses $1 because I know to use (for example) /jade -m on the command line.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard