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:
parent
2096df16d6
commit
451c6ace2e
@ -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,
|
||||||
|
@ -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 {}
|
||||||
|
Loading…
Reference in New Issue
Block a user