3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 09:58:42 +02:00

Fix factlog for deleted factoids not in global channel

This commit is contained in:
Pragmatic Software 2016-11-17 15:57:48 -08:00
parent 01cb062c82
commit df8e15b39e

View File

@ -760,7 +760,7 @@ sub factlog {
return $usage;
}
my $needs_disambig;
my $needs_disambig = 0;
if (not defined $trig) {
$trig = $chan;
@ -788,10 +788,14 @@ sub factlog {
}
}
} elsif (@factoids and $factoids[0]) {
if ($chan eq '.*') {
($channel, $trigger) = ($factoids[0]->[0], $factoids[0]->[1]);
} else {
($channel, $trigger) = ($chan, $trig);
}
} else {
($channel, $trigger) = ($chan, $trig);
}
my $result;
my $path = $self->{pbot}->{registry}->get_value('general', 'data_dir') . '/factlog';