mIRC Home    About    Download    Register    News    Help

Topic Options
#141925 - 14/02/06 03:57 AM Whats the problem?
blk Offline
Babel fish

Registered: 07/02/06
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-

Top
#141926 - 14/02/06 04:15 AM Re: Whats the problem?
schaefer31 Offline
Fjord artisan

Registered: 27/08/05
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!
}

Top