Project

General

Profile

Actions

Bug #5466

closed

ZNC self-message not working

Added by eahm eahm almost 3 years ago. Updated almost 3 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
12/26/2021
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

I just notice the script is not working (anymore?), I don't use queries much so I just noticed today and I have no idea how long it's been since it stopped working. It was working last time we tried because you fixed something in a previous beta to make it work so there is that.

If you can pleas check, I will attach it, thanks man.

; mIRC znc.in/self-message CAP support script by Mouse ; http://forums.mirc.com/ubbthreads.php/topics/252752 ; v0.3 2021-06-02 ; If server offers znc.in/self-message capability then request it. raw CAP:*LS*znc.in/self-message*:{ .raw CAP REQ :znc.in/self-message } ; Bold own nick mod by eahm ; Local alias to get correct "own" action and nick colors alias -l owncolor { if ($1 == action) { if ($color(own text) == $color(normal text)) { return $color(action text) } else { return $color(own text) } } if ($1 == nick && $cnick($me) > 0) { return $cnick($me).color } } ; Process all private messages delivered to $me for which $me is not the target/recipient AND ; when no window for $me exists. on ^*:OPEN:?:{ if ($target != $me) { ; Make sure we have a query window to print to. if (!$window($target)) { query $target } ; Print message with proper formatting after checking if it's an ACTION. if ($gettok($rawmsg,4,32) == : $+ $chr(1) $+ ACTION) { echo $owncolor(action) -bfmt $+ $msgstamp $target * $nick $1- } else { echo $color(own text) -bfmt $+ $msgstamp $target $chr(2) $+ < $+ $chr(2) $+ $chr(3) $+ $owncolor(nick) $+ $chr(2) $+ $nick $+ $chr(2) $+ $chr(3) $+ $chr(2) $+ > $+ $chr(2) $1- } ; Halt further processing. halt } } ; Process all private messages delivered to $me for which $me is not the target/recipient AND ; when a window for $me exists. on ^*:TEXT:*:?:{ if ($target != $me) { ; Make sure we have a query window to print to. if (!$window($target)) { query $target } ; Print message with proper formatting after checking if it's an ACTION. if ($gettok($rawmsg,4,32) == : $+ $chr(1) $+ ACTION) { echo $owncolor(action) -bfmt $+ $msgstamp $target * $nick $1- } else { echo $color(own text) -bfmt $+ $msgstamp $target $chr(2) $+ < $+ $chr(2) $+ $chr(3) $+ $owncolor(nick) $+ $chr(2) $+ $nick $+ $chr(2) $+ $chr(3) $+ $chr(2) $+ > $+ $chr(2) $1- } ; Halt further processing. halt } }
Actions #1

Updated by eahm eahm almost 3 years ago

https://files.catbox.moe/8112gm.zip

*the edit thing is not working.

Actually, I just noticed it's not working on mIRC either, not sure what's going on. Let me try to change the order of the scripts and test again.

Damn it, sorry for the post, changing to position makes it work. It's all fixed.

Actions #2

Updated by eahm eahm almost 3 years ago

You can close this ticket, it was my mistake, I should've tried to sort it before opening the "issue".

Actions #3

Updated by Per Amundsen almost 3 years ago

  • Status changed from New to Invalid
Actions

Also available in: Atom PDF