From 58ac29c4db28a0e53b82cb23febaa9e782c1ce2f Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 13 Jun 2023 23:22:43 -0700 Subject: [PATCH] Plugin/UrlTitles: add title to "ignored title" log message --- lib/PBot/Plugin/UrlTitles.pm | 4 ++-- lib/PBot/VERSION.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PBot/Plugin/UrlTitles.pm b/lib/PBot/Plugin/UrlTitles.pm index 7bc30afe..20671ff1 100644 --- a/lib/PBot/Plugin/UrlTitles.pm +++ b/lib/PBot/Plugin/UrlTitles.pm @@ -202,7 +202,7 @@ sub get_title($self, $context) { my $distance = distance(lc $file, lc $title); my $length = (length $file > length $title) ? length $file : length $title; - # disregard title if 75%+ similiar to file + # disregard title if 75%+ similar to file if ($distance / $length < 0.75) { $self->{pbot}->{logger}->log("URL ($url) is 75% similar to title ($title), disregarding\n"); return 0; @@ -210,7 +210,7 @@ sub get_title($self, $context) { # disregard ignored titles if ($self->is_ignored_title($title)) { - $self->{pbot}->{logger}->log("Disregarding ignored title\n"); + $self->{pbot}->{logger}->log("Disregarding ignored title ($title)\n"); return 0; } diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index ca4b1ba9..90a6834b 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4679, + BUILD_REVISION => 4680, BUILD_DATE => "2023-06-13", };