]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
use string comp for exact matching
authorDylan Lloyd <redacted>
Thu, 28 Feb 2019 08:28:16 +0000 (03:28 -0500)
committerDylan Lloyd <redacted>
Thu, 28 Feb 2019 08:28:16 +0000 (03:28 -0500)
scripts/go.pl

index 315e687f3e6f572eadb6b573d3648bd2c621386c..1892c1a41ad7eff44aeca5700819cee3f09eeef9 100644 (file)
@@ -84,7 +84,7 @@ sub cmd_go
        my @matches;
        foreach my $w (Irssi::windows) {
                my $name = $w->get_active_name();
-               if ($name =~ /$re$/) {
+               if (fc $name eq fc $chan) {
                        $w->set_active();
                        return;
                } elsif ($name =~ /$re/) {
git clone https://git.99rst.org/PROJECT