Project

General

Profile

Actions

Bug #5331

closed
EE PA

$target returns wrong value in some events

Bug #5331: $target returns wrong value in some events

Added by eahm eahm over 4 years ago. Updated over 4 years ago.

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

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Is there a way to make this work on AdiIRC?

https://forums.mirc.com/ubbthreads.php/topics/252752/ZNC_Query_Buffer_Self-Message_

Thank you.

PA Updated by Per Amundsen over 4 years ago Actions #1

Don't see a reason why it shouldn't work, doesn't seem to do anything special.

EE Updated by eahm eahm over 4 years ago Actions #2

I'll try again but it looked like it didn't open the query window, it printed all the msgs in an open chan window (without actually sending the msgs).

edit:
Same, it prints the whole query in the open chan window.

P™ Updated by psycho ™ over 4 years ago Actions #3

kr0n, the issue with this is the ON OPEN event...

if you're using ON ^*:OPEN:?:{ echo -a $target } -- it returns the current window name you have open (which is wrong.)
if you're using ON *:OPEN:?:{ echo -a $target } -- if returns the nickname of the person who is sending you the msg. (which is also wrong) 

the correct value here should be $me

using ON ^*:OPEN:?:{ echo -a $target } -- should return $me

PA Updated by Per Amundsen over 4 years ago Actions #4

  • Tracker changed from Feature to Bug
  • Subject changed from znc self-message mIRC script not working on AdiIRC to $target returns wrong value in some events
  • Category set to Scripting
  • Status changed from New to Resolved
  • Assignee set to Per Amundsen
  • Regression set to No

The correct value should actually be the target in "PRIVMSG <target> :text" which could be $me but also other nicks, I fixed that for next beta.

PA Updated by Per Amundsen over 4 years ago Actions #5

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom