]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
adv_windowlist 1.0a5
authorAilin Nemui <redacted>
Tue, 8 Dec 2015 19:28:44 +0000 (20:28 +0100)
committerAilin Nemui <redacted>
Tue, 8 Dec 2015 19:28:44 +0000 (20:28 +0100)
- the last version had an incorrect fix. reported by kl3

scripts/adv_windowlist.pl

index 60fe42ba85c8e418ea69b49103b978a56520b534..a6394064dba0d018855065811a379edf369826bc 100644 (file)
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '1.0a4'; # add219076dbc8f6
+our $VERSION = '1.0a5'; # e03ad26d0bb6d80
 our %IRSSI = (
     authors     => 'Nei',
     contact     => 'Nei @ anti@conference.jabber.teamidiot.de',
@@ -280,6 +280,15 @@ use List::Util qw(min max reduce);
 use Hash::Util qw(lock_keys);
 use Text::ParseWords qw(shellwords);
 
+BEGIN {
+    if ($] < 5.012) {
+       *CORE::GLOBAL::length = *CORE::GLOBAL::length = sub (_) {
+           defined $_[0] ? CORE::length($_[0]) : undef
+       };
+       *Irssi::active_win = {}; # hide incorrect warning
+    }
+}
+
 unless (IN_IRSSI) {
     local *_ = \@ARGV;
     &AwlViewer::main;
@@ -1673,15 +1682,6 @@ sub string_LCSS {
 
 { package Irssi::Nick }
 
-BEGIN {
-    if ($] < 5.012) {
-       *CORE::GLOBAL::length = *CORE::GLOBAL::length = sub (_) {
-           defined $_[0] ? CORE::length($_[0]) : undef
-       };
-       *Irssi::active_win = {}; # hide incorrect warning
-    }
-}
-
 UNITCHECK
 { package AwlViewer;
   use strict;
git clone https://git.99rst.org/PROJECT