mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2018
Posts: 193
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 193
Posting for archival purposes:

Code
; Opens pop-up when ZNC asks for /quote PASS

on *:SNOTICE:*/quote PASS*: {
  if ($nick == irc.znc.in) {
    .timerQuotePass 1 0 .quote PASS $$!?*"Password*:"
  }
}

Joined: Dec 2021
Posts: 12
T
Pikka bird
Offline
Pikka bird
T
Joined: Dec 2021
Posts: 12
You can remove the ! since it is only in affect after you have entered text in the input box. $! refers to the text that was inputted earlier.

Note: $$!?="" should be $$?=""

Joined: Jan 2004
Posts: 1,835
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,835
When used here, the purpose of the ! depends on whether they want to have the input be now or when the timer executes.

You can see the difference in these example. Both of them echo the string to the active window, but the 1st asks for the input right now before launching the timer containing your literal password, while the 2nd one launches the timer now and then waits 4 seconds to ask for the input. Note how there's a different result if your password is the length 8 string $version or is a word beginning with %

Code
//timerQuotePass 1 4 echo -a .quote PASS  $$?*"Password*:" | timerquotepass
//timerQuotePass 1 4 echo -a .quote PASS $$!?*"Password*:" | timerquotepass


Link Copied to Clipboard