mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Remove explicit check if command exists when looking for existing factoids
This commit is contained in:
parent
7aa9c4f182
commit
45c47aaea7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user