From: martin f. krafft Date: Tue, 21 Feb 2017 08:49:42 +0000 (+0100) Subject: Show the window refnum in debug output if there's not window name X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=da87365954e494e750afd4d49f58cef72d0f402e;p=irssi-scripts.irssi.org.git Show the window refnum in debug output if there's not window name Signed-off-by: martin f. krafft --- diff --git a/scripts/ctrlact.pl b/scripts/ctrlact.pl index da39804..3854132 100644 --- a/scripts/ctrlact.pl +++ b/scripts/ctrlact.pl @@ -343,7 +343,7 @@ sub maybe_inhibit_win_hilight { my ($th, $tth, $match) = get_win_threshold($wname, $wtag); my $inhibit = $newlevel > 0 && $newlevel < $th; debugprint(sprintf(DEBUGEVENTFORMAT, 'window', $wtag, - $wname?$wname:'(unnamed)', $newlevel, + $wname?$wname:"$win->{'refnum'}(unnamed)", $newlevel, $inhibit ? ('<',$th,'inhibit'):('≥',$th,'pass'), $tth, $match)); inhibit_win_hilight($win) if $inhibit;