mIRC Home    About    Download    Register    News    Help

Print Thread
Whats the problem? #141925 14/02/06 03:57 AM
Joined: Feb 2006
Posts: 95
B
blk Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
Code:
on *:TEXT:login *:?:{ if ($2 == %bot.pass.login) set %logged.in.nick $nick
  .msg $nick LOGIN CONFIRMED
  else .msg $nick PASSWORD IS INCORRECT!
}


-blk-
Re: Whats the problem? #141926 14/02/06 04:15 AM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
You need braces here since you're performing more than 1 command in the if statement. You can only leave them out if only 1 command is being executed.

Code:
on *:TEXT:login *:?:{ 
  if ($2 == %bot.pass.login) [color:red]{[/color]
    set %logged.in.nick $nick
    .msg $nick LOGIN CONFIRMED
  [color:red]}[/color]
  else .msg $nick PASSWORD IS INCORRECT!
}