]> git.99rst.org Git - irssi-scripts.irssi.org.git/commit
chansort_configurable: Fix a bug & change the default
authorÆvar Arnfjörð Bjarmason <redacted>
Wed, 4 May 2016 09:49:27 +0000 (11:49 +0200)
committerÆvar Arnfjörð Bjarmason <redacted>
Wed, 4 May 2016 09:55:40 +0000 (09:55 +0000)
commit41d5525b42f4b990375d7aefa408214ebde9882b
tree408d57abfd43fb36bf6804b731a3ebcae640c462
parent08f9f7edd81a009cb0c77542b87edac9c5b7c132
chansort_configurable: Fix a bug & change the default

For the reasons covered in the commets I'm adding here the
${a,b}.{type,chatnet,name} would sometimes not be filled, which my
default sorter was assuming so it would end up spewing some warnings.

So change the filling of the defaults to that this is always filled, and
document what the value passed as $a or $b will look like.

Finally, change the default sorting from the more naïve example that
just mostly does alphabetic sorting to one that preserves the order of
the QUERY windows as they're created.
scripts/chansort_configurable.pl
git clone https://git.99rst.org/PROJECT