3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 11:42:35 +01:00

modules/wiktionary.pl: show first unique entry instead of last

This commit is contained in:
Pragmatic Software 2021-07-10 08:38:08 -07:00
parent a168ee0474
commit 2b75863ebb

View File

@ -184,7 +184,7 @@ if ($unique) {
foreach my $result (@results) { foreach my $result (@results) {
$i++; $i++;
next if not $result or $result eq 'N/A'; next if not $result or $result eq 'N/A';
$uniq{$result} = $i; $uniq{$result} = $i unless exists $uniq{$result};
} }
if (not keys %uniq) { if (not keys %uniq) {