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
1 changed files with 0 additions and 4 deletions

View File

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