From: Jari Matilainen Date: Mon, 24 Apr 2017 20:54:06 +0000 (+0200) Subject: Push network only if @networks is empty X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d5738727ed90499a80ae371125e05232f22984b0;p=irssi-scripts.irssi.org.git Push network only if @networks is empty --- diff --git a/scripts/notes.pl b/scripts/notes.pl index 28ba217..0d7a47e 100644 --- a/scripts/notes.pl +++ b/scripts/notes.pl @@ -157,7 +157,7 @@ sub cmd_notes_del { return; } else { - push @networks, fc $server->{tag}; + push @networks, fc $server->{tag} if !@networks; } for (@networks) {