mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Factoids: Remove debug statement
This commit is contained in:
parent
62b50861cb
commit
5e574624b4
@ -455,8 +455,6 @@ sub select_item {
|
|||||||
my ($self, $list, $modifier) = @_;
|
my ($self, $list, $modifier) = @_;
|
||||||
my %settings;
|
my %settings;
|
||||||
|
|
||||||
$self->{pbot}->{logger}->log("Picking from list (" . (join ', ', @$list) . ") with modifier [$modifier]\n");
|
|
||||||
|
|
||||||
foreach my $mod (split /:/, $modifier) {
|
foreach my $mod (split /:/, $modifier) {
|
||||||
next if not length $mod;
|
next if not length $mod;
|
||||||
if ($mod =~ s/([,.#:-]+)$//) {
|
if ($mod =~ s/([,.#:-]+)$//) {
|
||||||
@ -598,12 +596,7 @@ sub select_item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wantarray) {
|
return wantarray ? ($item) : $item;
|
||||||
my @items = ($item);
|
|
||||||
return @items;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $item;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub expand_factoid_selectors {
|
sub expand_factoid_selectors {
|
||||||
|
Loading…
Reference in New Issue
Block a user