summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJari Matilainen2017-04-24 22:54:06 +0200
committerJari Matilainen2017-04-24 22:54:06 +0200
commitd5738727ed90499a80ae371125e05232f22984b0 (patch)
treec8009505b7a2e386e6badde5b18a0309899881be
parentedbfe4ab2163902408da5f688233f8046fc57509 (diff)
downloadscripts.irssi.org-d5738727ed90499a80ae371125e05232f22984b0.tar.bz2
Push network only if @networks is empty
-rw-r--r--scripts/notes.pl2
1 files changed, 1 insertions, 1 deletions
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) {