mIRC Home    About    Download    Register    News    Help

Print Thread
how to change a nick on a new server connection #8241 25/01/03 07:53 AM
Joined: Dec 2002
Posts: 9
V
Vandalite Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
V
Joined: Dec 2002
Posts: 9
I am working on a new multiple-server version of my script and i'd like to know if there's a way to change a nick before connecting to a new server window.

my setup is this: i have a script automatically joining more than one network, and i'd like it to change the nick BEFORE it connects, but i don't want it to change the existing network's nickname.

I have two options: create a new server window with the -n switch and change the nickname in that window... problem is that i can't get the $cid of a window that hasn't connected because there is no remote that will trigger until the server has connected (unless i overlooked something)

option two is to change the nickname and alternet nickname in the mirc options window before creating the new connection. problem is i can't find the alias that will change those settings. antoher way to do this is to change the mirc.ini file, but yet again, i find that that file is cached in memory, and i cannot find a function that will force update FROM file. (there are two functions that will save from memory TO file tho...)

If someone could show me someting i'm missing that'd be great.

Re: how to change a nick on a new server connection #8242 25/01/03 09:39 AM
Joined: Jan 2003
Posts: 12
F
Frozen_Hell Offline
Pikka bird
Offline
Pikka bird
F
Joined: Jan 2003
Posts: 12
/server -m ircserveraddress port -i nick altnick

ive just read this code in mirc help. u can use this in auto joinning script, so before connecting new server it opens new status window and changes nick and altnick.
Code:
/server [-mnsar] <server/groupname> [port] [password] [-i nick anick email name] [-j #channel pass]

is it what u need or not?

Re: how to change a nick on a new server connection #8243 25/01/03 04:58 PM
Joined: Dec 2002
Posts: 9
V
Vandalite Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
V
Joined: Dec 2002
Posts: 9
yes, that's exactly what i need. Thank you.