From 1abc466e7a5767f22924ded0e460790606414df7 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 17 Mar 2022 16:47:06 -0700 Subject: [PATCH] Plugin/UrlTitles: include URL in history file --- lib/PBot/Plugin/UrlTitles.pm | 4 +++- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/PBot/Plugin/UrlTitles.pm b/lib/PBot/Plugin/UrlTitles.pm index eab58849..56dbaf58 100644 --- a/lib/PBot/Plugin/UrlTitles.pm +++ b/lib/PBot/Plugin/UrlTitles.pm @@ -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); diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 4b5e9447..9d05e5b0 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -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 {}