]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Update nicklist.pl
authorailin-nemui <redacted>
Thu, 20 Jul 2017 14:39:22 +0000 (16:39 +0200)
committerGitHub <redacted>
Thu, 20 Jul 2017 14:39:22 +0000 (16:39 +0200)
unbreak a change that broke scrolling in nicklist 0.4.8

reported by kkiero

scripts/nicklist.pl

index de3b767e44473a2103772903c83bb10083aa7262..98e62b38ffde4060e1a1f9ec8650b3b44479f264 100755 (executable)
@@ -5,7 +5,7 @@ use strict;
 use IO::Handle; # for (auto)flush
 use Fcntl; # for sysopen
 use vars qw($VERSION %IRSSI);
-$VERSION = '0.4.8';
+$VERSION = '0.4.9';
 %IRSSI = (
        authors     => 'Wouter Coekaerts',
        contact     => 'coekie@irssi.org',
@@ -475,7 +475,7 @@ sub cmd_scroll {
        if (!$channel || $channel->{type} ne 'CHANNEL' || !$channel->{names_got}) {
                return;
        }
-       my @nicks = $channel->{nicks};
+       my @nicks = $channel->nicks;
        my $nick_count = scalar(@nicks)+0;
        if ($nick_count <= Irssi::settings_get_int('nicklist_height')) {
                return;
git clone https://git.99rst.org/PROJECT