3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-19 10:29:30 +01:00

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 # send result back to parent
$context->{result} = $title; $context->{result} = $title;
$context->{url} = $url;
} }
sub title_pipe_reader { sub title_pipe_reader {
@ -231,8 +232,9 @@ sub title_pipe_reader {
# update history # update history
$data = { $data = {
url => $context->{url},
timestamp => time, timestamp => time,
hostmask => $context->{hostmask}, hostmask => $context->{hostmask},
}; };
$self->{history}->add($context->{from}, $title, $data, 0, 1); $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 # These are set by the /misc/update_version script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 4511, BUILD_REVISION => 4514,
BUILD_DATE => "2022-03-09", BUILD_DATE => "2022-03-17",
}; };
sub initialize {} sub initialize {}