Actions
Bug #5792
closed$target value of privatemessage event is not consistent with channelmessage event
Start date:
01/13/2024
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Regression:
Yes
Description
I just updated to v4.4 recently, Previously on v3.9 this piece of snippet works correctly.
if (%ispm) { echo -tfmc %mode $target %nickfmt %msg } elseif (%check_hl) { echo -tlmc %mode $target %nickfmt %msg } else { echo -tmc %mode $target %nickfmt %msg }
It's a script to check whether I have to ignore an highlight via custom pattern, reformat nick color to match the server's classic coloring output, and filter unwanted words/lines from message.
However as I updated, the script ON TEXT ($chan == $null) now uses $target of my own nickname instead the sender's $nick.
A temporary solution that I made for v4.4 is changing the $target on %ispm condition into $nick into this.
if (%ispm) { echo -tfmc %mode $nick %nickfmt %msg } elseif (%check_hl) { echo -tlmc %mode $target %nickfmt %msg } else { echo -tmc %mode $target %nickfmt %msg }
Current behavior of v4.4 bugged output:
[07:37:25] <Rei_Hakurei> faq osr [07:37:26] Rei_Hakurei <BanchoBot> Entry not found!
Expected behavior (from v3.9) output:
[07:37:25] <Rei_Hakurei> faq osr [07:37:26] <BanchoBot> Entry not found!
Actions