From: Dylan Lloyd Date: Thu, 28 Feb 2019 08:28:16 +0000 (-0500) Subject: use string comp for exact matching X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=92b86c014115eee9d425dd72939dd77596b09202;p=irssi-scripts.irssi.org.git use string comp for exact matching --- diff --git a/scripts/go.pl b/scripts/go.pl index 315e687..1892c1a 100644 --- a/scripts/go.pl +++ b/scripts/go.pl @@ -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/) {