3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-26 12:42:49 +01:00

Factoids: stricter search for get_meta()

This commit is contained in:
Pragmatic Software 2020-09-29 19:27:04 -07:00
parent 6afabba183
commit 49d81072cd

View File

@ -101,7 +101,7 @@ sub get_meta {
my ($self, $channel, $trigger, $key) = @_;
$channel = lc $channel;
$trigger = lc $trigger;
my ($chan, $trig) = $self->find_factoid($channel, $trigger, exact_channel => 1);
my ($chan, $trig) = $self->find_factoid($channel, $trigger, exact_channel => 1, exact_trigger => 1);
return undef if not defined $chan;
return $self->{factoids}->get_data($chan, $trig, $key);
}