3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-05 10:58:44 +02:00

Remove explicit check if command exists when looking for existing factoids

This commit is contained in:
Pragmatic Software 2017-08-03 16:15:52 -07:00
parent 7aa9c4f182
commit 45c47aaea7

View File

@ -270,10 +270,6 @@ sub find_factoid {
my @result = eval { my @result = eval {
my @results; my @results;
for (my $depth = 0; $depth < 5; $depth++) { for (my $depth = 0; $depth < 5; $depth++) {
if ($self->{pbot}->{commands}->exists($keyword)) {
return undef;
}
# check factoids # check factoids
foreach my $channel (sort keys %{ $self->{factoids}->hash }) { foreach my $channel (sort keys %{ $self->{factoids}->hash }) {
if($exact_channel) { if($exact_channel) {