3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 03:49:29 +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) {
$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,

View File

@ -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 {}