mIRC Home    About    Download    Register    News    Help

Print Thread
#139985 20/01/06 11:50 PM
Joined: Jun 2004
Posts: 133
S
state Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 133
ne one see ne thing wrong with this

Code:
on @*:TEXT:password *:? { 
  if ($2 == test) {
    mode # +o $nick
  }
}


Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Missing a : (highlighted in red)

Code:
on @*:TEXT:password *:?[color:red]:[/color]{ 
  if ($2 == test) {
    mode # +o $nick
  }
}

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
As Shaefer31 said:
Quote:
Missing a : (highlighted in red)

Code:
on @*:TEXT:password *:?[color:red]:[/color]{ 
  if ($2 == test) {
    mode # +o $nick
  }
}

also the text event is pointing to private messages which wont have the channel
and if it was a channel text, I think you need to use $chan rather than #

you might need to have the user send !password (password) (channel)
so !password test #test
Code:
on @*:TEXT:!password *:?:{ 
  if ($2 == test) && ($3 == #test) {
    mode #test +o $nick
  }
}

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Heh, I need to pay more attention sometimes. wink

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
me too
I need new glasses I think!


Link Copied to Clipboard