mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 10:59:29 +01:00
Fix factlog for deleted factoids not in global channel
This commit is contained in:
parent
01cb062c82
commit
df8e15b39e
@ -760,7 +760,7 @@ sub factlog {
|
|||||||
return $usage;
|
return $usage;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $needs_disambig;
|
my $needs_disambig = 0;
|
||||||
|
|
||||||
if (not defined $trig) {
|
if (not defined $trig) {
|
||||||
$trig = $chan;
|
$trig = $chan;
|
||||||
@ -788,7 +788,11 @@ sub factlog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elsif (@factoids and $factoids[0]) {
|
} elsif (@factoids and $factoids[0]) {
|
||||||
($channel, $trigger) = ($factoids[0]->[0], $factoids[0]->[1]);
|
if ($chan eq '.*') {
|
||||||
|
($channel, $trigger) = ($factoids[0]->[0], $factoids[0]->[1]);
|
||||||
|
} else {
|
||||||
|
($channel, $trigger) = ($chan, $trig);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
($channel, $trigger) = ($chan, $trig);
|
($channel, $trigger) = ($chan, $trig);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user