From: IsaacG Date: Thu, 26 May 2011 23:17:59 +0000 (-0400) Subject: Changed the @windows test to defined $win[0] to match master branch. Supposedly it... X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=67a9b0a5cac79eee8a4917f88653890b8c9c5a87;p=irssi-scripts.irssi.org.git Changed the @windows test to defined $win[0] to match master branch. Supposedly it works better. --- diff --git a/scripts/ack.pl b/scripts/ack.pl index 72883d5..42d9ba2 100644 --- a/scripts/ack.pl +++ b/scripts/ack.pl @@ -157,7 +157,7 @@ sub cmd_ack } # Jump to the first window. How hard can it be? - $windows[0]->set_active() if @windows; + $windows[0]->set_active() if (defined $windows[0]); } # Add a refnum to the high priority list