mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
modules/wiktionary.pl: show first unique entry instead of last
This commit is contained in:
parent
a168ee0474
commit
2b75863ebb
2
modules/wiktionary.pl
vendored
2
modules/wiktionary.pl
vendored
@ -184,7 +184,7 @@ if ($unique) {
|
||||
foreach my $result (@results) {
|
||||
$i++;
|
||||
next if not $result or $result eq 'N/A';
|
||||
$uniq{$result} = $i;
|
||||
$uniq{$result} = $i unless exists $uniq{$result};
|
||||
}
|
||||
|
||||
if (not keys %uniq) {
|
||||
|
Loading…
Reference in New Issue
Block a user