From: Isaac Good Date: Wed, 7 Dec 2016 19:32:54 +0000 (-0800) Subject: Reset the list hash cleanly. Avoid deleting key by key. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4d704c971074017215867b054c80c26517a4e1c4;p=irssi-scripts.irssi.org.git Reset the list hash cleanly. Avoid deleting key by key. --- 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 = (); }