mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-04 08:24:06 +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 @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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user