3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 15:29:32 +01:00

Plugin/Connect4: make send_message() delay argument optional

This commit is contained in:
Pragmatic Software 2023-09-28 13:28:23 -07:00
parent 2096df16d6
commit 451c6ace2e
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 3 additions and 4 deletions

View File

@ -367,8 +367,7 @@ sub player_left($self, $nick, $user, $host) {
} }
} }
sub send_message($self, $to, $text, $delay) { sub send_message($self, $to, $text, $delay = 0) {
$delay = 0 if not defined $delay;
my $botnick = $self->{pbot}->{registry}->get_value('irc', 'botnick'); my $botnick = $self->{pbot}->{registry}->get_value('irc', 'botnick');
my $message = { my $message = {
nick => $botnick, nick => $botnick,

View File

@ -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 => 4688, BUILD_REVISION => 4689,
BUILD_DATE => "2023-09-24", BUILD_DATE => "2023-09-28",
}; };
sub initialize {} sub initialize {}