mIRC Home    About    Download    Register    News    Help

Print Thread
change nick and password based on network #160233 24/09/06 02:45 PM
Joined: May 2005
Posts: 449
bwr30060 Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: May 2005
Posts: 449
I haven't had a need for this before, but now I do, and I don't know how to accomplish it. This seems like it could be a problem, because I need my nick to be Blake81 if $network = ScanGeorgia. That'll be a problem though, because I can't connect to the server unless my name is correct, and network won't equal anything if I'm not connected, right? Thanks.

Re: change nick and password based on network #160234 24/09/06 05:21 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
/server irc.yournetwork.net 6667 -i MainNick AltNick [email]email@address[/email] Realname

-genius_at_work

Re: change nick and password based on network #160235 24/09/06 07:24 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
I haven't had a need for this before, but now I do, and I don't know how to accomplish it. This seems like it could be a problem, because I need my nick to be Blake81 if $network = ScanGeorgia. That'll be a problem though, because I can't connect to the server unless my name is correct, and network won't equal anything if I'm not connected, right? Thanks.


the ON COnnect code still functions at good speed during connect before the server finds out your "Nick"

Code:
ON *:CONNECT:{
if ($network == whatevernetwork) { nick nickforthisnetwork | msg nickserv identify password for that nick }
elseif ($network == whatevernetwork for next network) { nick nickforthisnetwork | msg nickserv identify password for that nick }
elseif { again same as on top }
elseif { again same as on top }
}


you get the point


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: change nick and password based on network #160236 24/09/06 07:56 PM
Joined: Aug 2006
Posts: 23
W
wulf Offline
Ameglian cow
Offline
Ameglian cow
W
Joined: Aug 2006
Posts: 23
i should hurry up and post my away script somewhere. It has an on connect section that will set your nick based on the network, auto-idents to nickserv (anope varity) and oper, if you have access. Uses an ini file to store settings and remeber your away states.

I think it would work for what you want :tongue: