Plugin/UrlTitles: include URL in history file

This commit is contained in:
Pragmatic Software 2022-03-17 16:47:06 -07:00
parent fcb39511c3
commit 1abc466e7a
2 changed files with 5 additions and 3 deletions

View File

@ -202,6 +202,7 @@ sub get_title {
# send result back to parent
$context->{result} = $title;
$context->{url} = $url;
}
sub title_pipe_reader {
@ -231,8 +232,9 @@ sub title_pipe_reader {
# update history
$data = {
url => $context->{url},
timestamp => time,
hostmask => $context->{hostmask},
hostmask => $context->{hostmask},
};
$self->{history}->add($context->{from}, $title, $data, 0, 1);

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4511,
BUILD_DATE => "2022-03-09",
BUILD_REVISION => 4514,
BUILD_DATE => "2022-03-17",
};
sub initialize {}