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

factlog now logs renames on both sides instead of only destination side

This commit is contained in:
Pragmatic Software 2019-08-25 08:53:59 -07:00
parent 78082792e5
commit 9c803b2d14

View File

@ -844,6 +844,7 @@ sub factmove {
$target_channel = 'global' if $target_channel eq '.*';
if ($src_channel eq $target_channel) {
$self->log_factoid($found_src_channel, $found_source, "$nick!$user\@$host", "renamed from $found_source to $target");
$self->log_factoid($target_channel, $target, "$nick!$user\@$host", "renamed from $found_source to $target");
return "[$found_src_channel] $found_source renamed to $target";
} else {