From 02d690600b83ce92a48a2e05425635de38db6127 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 28 Jan 2023 11:48:29 -0800 Subject: [PATCH] Gate message-tags debug message with irc.debug_tags --- lib/PBot/Core/IRC.pm | 4 +++- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/PBot/Core/IRC.pm b/lib/PBot/Core/IRC.pm index b9de2cc7..13be0fe6 100644 --- a/lib/PBot/Core/IRC.pm +++ b/lib/PBot/Core/IRC.pm @@ -264,7 +264,9 @@ sub timeout { sub get_tags { my ($self, $tags) = @_; - $self->{_pbot}->{logger}->log("Message tags: [$tags]\n"); + if ($self->{_pbot}->{registry}->get_value('irc', 'debug_tags')) { + $self->{_pbot}->{logger}->log("Message tags: [$tags]\n"); + } my @list = split ';', $tags; my %hash; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 678e26b6..d60b7222 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 => 4606, - BUILD_DATE => "2023-01-27", + BUILD_REVISION => 4608, + BUILD_DATE => "2023-01-28", }; sub initialize {}