mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2003
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Nov 2003
Posts: 8
Hi,

I wrote my first script as follows smile :
alias myserver1-schulie {
/server -m theserver.com 6667 -i schulie schulietwo watiba@schendel.com myname
/msg nickserv identify cognac
}

The scripts connects fine to the server but the /msg nickserv is not executed correctly. In fact, it is executed in the status window where the script was launched, not the new status window of the new server connection (P.S. I would not like to use the Options-Perform entries or the on:connect feature to run the /msg line but would like to put all in this script). is this possible?

Thank you very much for your help!

Rgds,
Raoul.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On *:Connect: {
  if ($server == theserver.com) { msg nickserv identify .. }
}

Joined: Nov 2003
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Nov 2003
Posts: 8
Hi,

Thanks!

Can i also check with what nick i'm connecting in this 'on" event?

regards,
Raoul

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On *:Connect: {
  if ($server == theserver.com) && ($nick == [color:red]nick_name_here[/color]) { msg nickserv identify .. }
}

Joined: Apr 2005
Posts: 1
C
Mostly harmless
Offline
Mostly harmless
C
Joined: Apr 2005
Posts: 1
While this not be totally on topic, its the best thread that I could find that relates to my problem. Anyways, what are the switches to the /server command? I know that -m will open up a new multi-server tab. Are there any others? I eventally want to have a startup script that joins multiple servers but allows me to have a different nickname on each. Any ideas? Thanks.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Use the -i switch to set nick anick email name.

Code:
On *:Start: {
  server first.server.name -i FirstNick
  server -m second.server.name -i SecondNick
  server -m third.server.name -i ThirdNick
}


More information /help /server.


Link Copied to Clipboard