3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

Factoids: revert $var channel expansion -- now strict again; will improve shortly

This commit is contained in:
Pragmatic Software 2019-08-20 14:57:12 -07:00
parent a6d09e34ea
commit 6115d73639

View File

@ -461,7 +461,7 @@ sub expand_factoid_vars {
my $recurse = 0; my $recurse = 0;
ALIAS: ALIAS:
my @factoids = $self->find_factoid($from, $test_v, exact_channel => 0, exact_trigger => 2); my @factoids = $self->find_factoid($from, $test_v, exact_channel => 2, exact_trigger => 2);
next if not @factoids or not $factoids[0]; next if not @factoids or not $factoids[0];
my ($var_chan, $var) = ($factoids[0]->[0], $factoids[0]->[1]); my ($var_chan, $var) = ($factoids[0]->[0], $factoids[0]->[1]);