mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 13
M
Murray Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Dec 2002
Posts: 13
Type /help $input, so it says:
bla bla bla...
Note: This identifier cannot be used in a script event. One way around this is to use a /timer to initiate an input request after the script ends.

So i put something like this:
on *:notice:*identify*:?:if ($nick == NickServ) { .timer 1 1 msg NickServ IDENTIFY $input(Insert your password for the nick $me,poqs,Password,Input Password) }

That returns:
* $input: can't use in an event
so what's the problem here? is it a bug? the same occurs with $? using or not timers.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on *:notice:*identify*:?:{ if ( $nick == NickServ ) { .timer 1 1 msg NickServ IDENTIFY $!input(Insert your password for the nick $!me,poqs,Password,Input Password) } } 

or the more pretty:
Code:
on *:notice:*identify*:?:{ 
  if ( $nick == NickServ ) {
    .timer 1 1 msg NickServ IDENTIFY $!input(Insert your password for the nick $!me,poqs,Password,Input Password) 
  } 
} 


The ! evaluates the identifiers when the timer ends, without the ! it tries to evaluate them before starting the timer.

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Using DALnet, for example,
Code:

on *:NOTICE:*nick is owned:?: .timer -m 1 0 Auto-Identify
alias Auto-Identify {
  if (($fulladdress == NickServ!service@dal.net) && ($network == DALnet) && ($right($server,8) == .dal.net)) {
    .raw IDENTIFY $input(Insert your password for the nick $me,poqs,Password,Input Password)
  }
}

Note: auto-identification is dangerous as there are ways to fool your script into identifying. If you use a script such as this, be very aware of where you are. If you lose your password due to an auto-identification script, you won't get your nick back.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Dec 2002
Posts: 13
M
Murray Offline OP
Pikka bird
OP Offline
Pikka bird
M
Joined: Dec 2002
Posts: 13
That's it! how i didn't realize? i'm a lewser grin

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
when using automatic auth scripts you need to build in checks.

I'm on netgamers which uses a uworld service bot called P.

the auth is done by using: /msg P@cservice.netgamers.org LOGIN <NAME> <PASS>

this makes it impossible for others to fool you into being P, because the reply you send goes to 1 server only.

people have to spoof their hostmask to get around this one ;-]

with nickserv it's always best to use /NICKSERV and not /MSG NICKSERV...


If it ain't broken, don't fix it!

Link Copied to Clipboard