From 451c6ace2ec6d5015f0a5d559f7e824ba843b0af Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 28 Sep 2023 13:28:23 -0700 Subject: [PATCH] Plugin/Connect4: make send_message() delay argument optional --- lib/PBot/Plugin/Connect4.pm | 3 +-- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/PBot/Plugin/Connect4.pm b/lib/PBot/Plugin/Connect4.pm index b9d1baa6..f8a17feb 100644 --- a/lib/PBot/Plugin/Connect4.pm +++ b/lib/PBot/Plugin/Connect4.pm @@ -367,8 +367,7 @@ sub player_left($self, $nick, $user, $host) { } } -sub send_message($self, $to, $text, $delay) { - $delay = 0 if not defined $delay; +sub send_message($self, $to, $text, $delay = 0) { my $botnick = $self->{pbot}->{registry}->get_value('irc', 'botnick'); my $message = { nick => $botnick, diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 8072d410..976ad4ba 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 => 4688, - BUILD_DATE => "2023-09-24", + BUILD_REVISION => 4689, + BUILD_DATE => "2023-09-28", }; sub initialize {}