mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
Fix undefined variable warning in find_factoid
This commit is contained in:
parent
81abdbec29
commit
89eda8f0a9
@ -269,7 +269,7 @@ sub find_factoid {
|
||||
# check factoids
|
||||
foreach my $channel (sort keys %{ $self->{factoids}->hash }) {
|
||||
if($exact_channel) {
|
||||
if($exact_trigger == 1) {
|
||||
if(defined $exact_trigger && $exact_trigger == 1) {
|
||||
next unless $from eq lc $channel;
|
||||
} else {
|
||||
next unless $from eq lc $channel or $channel eq '.*';
|
||||
|
Loading…
Reference in New Issue
Block a user