mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 11:59:43 +01:00
Plugin/UrlTitles: include URL in history file
This commit is contained in:
parent
fcb39511c3
commit
1abc466e7a
@ -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);
|
||||||
|
@ -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 {}
|
||||||
|
Loading…
Reference in New Issue
Block a user