From 45c47aaea799bc6cb8911b628ac149f8e25b99db Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 3 Aug 2017 16:15:52 -0700 Subject: [PATCH] Remove explicit check if command exists when looking for existing factoids --- PBot/Factoids.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 18e26158..9fac7fa2 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -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) {