]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
adv_windowlist update to 1.3
authorAilin Nemui <redacted>
Tue, 1 Nov 2016 16:15:32 +0000 (17:15 +0100)
committerAilin Nemui <redacted>
Tue, 1 Nov 2016 16:15:32 +0000 (17:15 +0100)
- workaround for irssi issue #572

scripts/adv_windowlist.pl

index ee0219b5c38b435fc939e6131d37e84bb704af53..62857860d8b5b35ee05188c1220b8bca8b7ee55e 100644 (file)
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '1.2'; # 762850b0c2c1d5a
+our $VERSION = '1.3'; # 463402cffae35e5
 our %IRSSI = (
     authors     => 'Nei',
     contact     => 'Nei @ anti@conference.jabber.teamidiot.de',
@@ -1710,8 +1710,13 @@ sub string_LCSS {
     (sort { length $b <=> length $a } $str =~ /(?=(.+).*\0.*\1)/g)[0]
 }
 
+# workaround for issue #271
 { package Irssi::Nick }
 
+# workaround for issue #572
+@Irssi::UI::Exec::ISA = 'Irssi::Windowitem'
+    if Irssi::version >= 20140822 && Irssi::version <= 20161101 && !@Irssi::UI::Exec::ISA;
+
 UNITCHECK
 { package AwlViewer;
   use strict;
@@ -2388,6 +2393,7 @@ UNITCHECK
 
 # Changelog
 # =========
+# 1.3 - workaround for irssi issue #572
 # 1.2 - new format to choose abbreviation character
 # 1.1 - infinite loop on shortening certain window names reported by Kalan
 #
git clone https://git.99rst.org/PROJECT