diff options
| author | Isaac Good | 2016-12-07 11:32:54 -0800 |
|---|---|---|
| committer | Isaac Good | 2016-12-07 11:32:54 -0800 |
| commit | 4d704c971074017215867b054c80c26517a4e1c4 (patch) | |
| tree | 615891bb2044a7b5edd81fe14195e11da6cca179 /scripts | |
| parent | a276aad4819e7d3a2c24cc2e621d7fce0dcac574 (diff) | |
| download | scripts.irssi.org-4d704c971074017215867b054c80c26517a4e1c4.tar.bz2 | |
Reset the list hash cleanly. Avoid deleting key by key.
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/listsort.pl | 2 |
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 = (); } |
