Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HL ZNC #2591

Open
NikoZion opened this issue Jan 11, 2024 · 5 comments
Open

HL ZNC #2591

NikoZion opened this issue Jan 11, 2024 · 5 comments

Comments

@NikoZion
Copy link

Hello,

I use KVIRC ARIA with Andaris script.
I don't see the highlights in HL window when I close the client.
I'm connected with ZNC.

How to see the HL in the window when I close KVIRC ?

@DarthGandalf
Copy link
Member

What is HL window? And how do you imagine seeing any window if you closed the client?

@ctrlaltca
Copy link
Contributor

I guess it's a functionality related to Andaris script, looking at their screenshots I see a HL window: http://andaris.tuxfamily.org
I tried to ask for help on #kvirc@EuropNet, maybe someone will reply here. Anyway I advice @NikoZion to connect to EuroNet server and join #KVIrc there, it's probably easier to find someone who's more confident with Andaris

@NikoZion
Copy link
Author

Hello,

This is the event. I know that there is something to edit (here or elsewhere) but don't remember what.

if($kviequal(%ZNC{$window},1)) return 1
if(%Andaris{ViewText}) halt
#if(%Andaris{ThemeColor}) return 1
if($kviequal($my.nick,$0)) return 0
if($kviequal($target,#services)) %service = 1
if($kviequal($target,#trobot)) %service = 2
if($kviequal($target,#EN-verbose)) %service = 1
if($kviequal($target,#verbose-trobot)) %service = 1
if($channel) %ischan = 1
if($kviequal($6,1)){
%action = "ACTION"
} else {
%action = "PRIVMSG"
}
%ident=$0!$1@$2-$server
%itext=$inputcolor::black($3)
%itext =~ s/$4/$u$4$u/ig
%text=$str.stripcolors($3)
if(%service && %ischan) return 0
if(!%service && %ischan){
if(%Andaris{StatsMe})stats::read hl
$andaris::sound(hl)
if($window != $window.list(dccchat,none)){
%chan=$cr!c$target$cr$target$cr
if(($window.exists(%HL{id.$ic}))){
window.setWindowTitle %HL{id.$ic} "HL [$0]"
} else {
if($window.list(channel,$ic)){
WindowsHL
window.setWindowTitle %HL{id.$ic} "HL [$0]"
}
}
window.highlight -q 4 %HL{id.$ic}
if($kviequal($6,1))echoprivmsg -n -w=%HL{id.$ic} -i=$5 -p="$andaris::event("$k(14)[$b$k(4)%action $tr("on","andaris") %chan$b$k(14)]") $k$b()* $b" -s=" " $0 $1 $2 %itext
if($kviequal($6,0))echoprivmsg -n -w=%HL{id.$ic} -p="$andaris::event("$k(14)[$b$k(4)%action $tr("on","andaris") %chan$b$k(14)]")$k $option(stringExtendedPrivmsgPrefix)" -s="$option(stringExtendedPrivmsgPostfix)" -i=$5 $0 $1 $2 %itext
}
if(!$kviequalcase($channel,$active)){
if($kviequal($6,0)){
echoprivmsg -n -w=$channel -i=$msgtype(Highlight) $0 $1 $2 %itext
if(%ZNC{$window}!=1)echoprivmsg -n -w=$active -p="$andaris::event("$k(14)[$b$k(4)HighLight $tr("on","andaris") %chan$b$k(14)]")$k $option(stringExtendedPrivmsgPrefix)" -s="$option(stringExtendedPrivmsgPostfix)" -i=$msgtype(Highlight) $0 $1 $2 %itext
}
if($kviequal($6,1)){
echoprivmsg -n -w=$channel -i=$msgtype(Highlight) -p="$k$b()* $b" -s=" " $0 $1 $2 %itext
if(%ZNC{$window}!=1)echoprivmsg -n -w=$active -p="$andaris::event("$k(14)[$b$k(4)HighLight $tr("on","andaris") %chan$b$k(14)]") $k$b()* $b" -s=" " -i=$msgtype(Highlight) $0 $1 $2 %itext
}
halt
} else {
if($kviequal($6,0))echoprivmsg -n -w=$channel -i=$msgtype(Highlight) $0 $1 $2 %itext
if($kviequal($6,1))echoprivmsg -n -w=$channel -i=$msgtype(Highlight) -p="$k$b()* $b" -s=" " $0 $1 $2 %itext
halt
}
}

@DarthGandalf
Copy link
Member

You didn't explain what you want to achieve, how this relates to ZNC, and how can you see any window while the client is closed.

I don't know what the script you posted is supposed to be doing, so can't help debugging it either.

@NikoZion
Copy link
Author

Andaris has an HL window and when I close the client and am connected in ZNC I do not have the HL during my absence when I open the client. How to do ? In the meantime, I'm using watch module. Good day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants