summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorIsaac Good2016-12-07 11:32:54 -0800
committerIsaac Good2016-12-07 11:32:54 -0800
commit4d704c971074017215867b054c80c26517a4e1c4 (patch)
tree615891bb2044a7b5edd81fe14195e11da6cca179 /scripts
parenta276aad4819e7d3a2c24cc2e621d7fce0dcac574 (diff)
downloadscripts.irssi.org-4d704c971074017215867b054c80c26517a4e1c4.tar.bz2
Reset the list hash cleanly. Avoid deleting key by key.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/listsort.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/listsort.pl b/scripts/listsort.pl
index 8e6e02d..81b9ab9 100644
--- a/scripts/listsort.pl
+++ b/scripts/listsort.pl
@@ -55,6 +55,6 @@ sub list_end {
Irssi::print($msg, MSGLEVEL_CRAP);
}
# Drop the hash values; no point in holding them in memory.
- delete @list{keys %list};
+ %list = ();
}