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:
parent
a168ee0474
commit
2b75863ebb
2
modules/wiktionary.pl
vendored
2
modules/wiktionary.pl
vendored
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user