3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Fix undefined variable warning in find_factoid

This commit is contained in:
Pragmatic Software 2015-10-19 12:21:42 -07:00
parent 81abdbec29
commit 89eda8f0a9

View File

@ -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 '.*';