mIRC Home    About    Download    Register    News    Help

Print Thread
#27375 01/06/03 06:47 AM
Joined: Jan 2003
Posts: 5
D
ds133 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2003
Posts: 5
Hi,

why doesnt this work just only on the server that i specified in the if-"question"?

on *:CONNECT:{
if (($server == Daisy.aFterWorkChat.com) OR ($server == irc.afterworkchat.com))
{
ns identify password
join chan
}
}

#27376 01/06/03 06:58 AM
Joined: May 2003
Posts: 2
M
Bowl of petunias
Offline
Bowl of petunias
M
Joined: May 2003
Posts: 2
Use || instead of OR.

#27377 01/06/03 08:01 AM
Joined: Jan 2003
Posts: 5
D
ds133 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Jan 2003
Posts: 5
* /if: ambiguous format (line 2, script1.mrc)

now..

#27378 01/06/03 08:36 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
if ( ... ) {
...
}


Code:
//if ( khaled isgod ) echo yes | else echo no
#27379 01/06/03 09:14 AM
Joined: Dec 2002
Posts: 339
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2002
Posts: 339
Code:
on *:CONNECT:{ if (($server == Daisy.aFterWorkChat.com) ||  ($server == irc.afterworkchat.com)) { ns identify password | join #ChannelName } }


Link Copied to Clipboard