Project

General

Profile

Feature #5383

closed

$address is missing for servers in SNOTICE events

Added by eahm eahm 25 days ago. Updated 24 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
08/23/2021
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hi, is there a way to make this work on AdiIRC too?

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

Thank you.

#1

Updated by eahm eahm 25 days ago

  • Tracker changed from Bug to Feature
  • Category set to Scripting
  • Regression deleted (No)
#2

Updated by eahm eahm 25 days ago

  • Subject changed from $$!? to Open dialog when irc.znc.in asks for /quote PASS
#3

Updated by Per Amundsen 25 days ago

  • Subject changed from Open dialog when irc.znc.in asks for /quote PASS to $address is missing for servers in SNOTICE events
  • Status changed from New to Resolved
  • Assignee set to Per Amundsen

You could just use $nick instead of $address, but sure $address should have a value in this case.

#4

Updated by Per Amundsen 25 days ago

  • Status changed from Resolved to Closed
#5

Updated by eahm eahm 25 days ago

Don't know how to reply once closed, $nick doesn't work of course, I already tried that.

#6

Updated by Per Amundsen 25 days ago

You can reply, it's just a status to auto update my changelogs. $nicks works fine for me, not sure why it wouldn't work for you.

#7

Updated by eahm eahm 25 days ago

This is what I changed it to:
on *:SNOTICE:*/quote PASS*: {
if ($nick == irc.znc.in) {
.timerQuotePass 1 0 /quote PASS $$!?*"Password:"
}
}

And this is what I get:

23:23:30 * Password required
23:23:30 -irc.znc.in- *** You need to send your password. Configure your client to send a server password.
23:23:30 -irc.znc.in- *** To connect now, you can use /quote PASS <username>:<password>, or /quote PASS <username>/<network>:<password> to connect to a specific network.
23:23:30 * Sent raw: 'PASS ******'
23:23:31 * Invalid Password

All automatic, I don't see any dialog.

#8

Updated by Per Amundsen 25 days ago

Make sure you don't have another script/plugin which performs the /PASS. It could also be from the server password if configured, hard to tell, although the SNOTICE would still be triggered in that case.

#9

Updated by eahm eahm 25 days ago

No other script loaded other than the znc selfmsg one, removed and tested again and it still sends the password automatically, no dialog.

Can you please paste the one that works for you?

#10

Updated by Per Amundsen 25 days ago

I just replaces $address with $nick, not sure what is going on for you.

#11

Updated by eahm eahm 25 days ago

Ok, it works with the alias /qp, which for me is /quote PASS $$?*"Password:"

And with /quote PASS $$?*"Password:" but not with /quote PASS $$!?*"Password:"

So it should be all good for now I think, still testing few things.

#12

Updated by Per Amundsen 25 days ago

Interesting, I'll see what I can find.

#13

Updated by Per Amundsen 24 days ago

I finally figured out the second problem, see #5384.

For some reason the double $$ was not copy pasted so I was testing on $! which worked as expected compared to $$!.

#14

Updated by eahm eahm 24 days ago

Thank you man, already tested and everything works perfectly!

Also available in: Atom PDF