mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 12:29: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
|
# check factoids
|
||||||
foreach my $channel (sort keys %{ $self->{factoids}->hash }) {
|
foreach my $channel (sort keys %{ $self->{factoids}->hash }) {
|
||||||
if($exact_channel) {
|
if($exact_channel) {
|
||||||
if($exact_trigger == 1) {
|
if(defined $exact_trigger && $exact_trigger == 1) {
|
||||||
next unless $from eq lc $channel;
|
next unless $from eq lc $channel;
|
||||||
} else {
|
} else {
|
||||||
next unless $from eq lc $channel or $channel eq '.*';
|
next unless $from eq lc $channel or $channel eq '.*';
|
||||||
|
Loading…
Reference in New Issue
Block a user