Factoids: Remove debug statement

This commit is contained in:
Pragmatic Software 2020-06-02 22:41:19 -07:00
parent 62b50861cb
commit 5e574624b4
1 changed files with 1 additions and 8 deletions

View File

@ -455,8 +455,6 @@ sub select_item {
my ($self, $list, $modifier) = @_;
my %settings;
$self->{pbot}->{logger}->log("Picking from list (" . (join ', ', @$list) . ") with modifier [$modifier]\n");
foreach my $mod (split /:/, $modifier) {
next if not length $mod;
if ($mod =~ s/([,.#:-]+)$//) {
@ -598,12 +596,7 @@ sub select_item {
}
}
if (wantarray) {
my @items = ($item);
return @items;
}
return $item;
return wantarray ? ($item) : $item;
}
sub expand_factoid_selectors {