mIRC Homepage
Posted By: eahm ZNC: Opens pop-up when it asks for /quote PASS - 08/09/22 09:31 PM
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*:"
  }
}
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 $$?=""
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
© mIRC Discussion Forums