mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 20:42:38 +01:00
Force checkflood for output_queue to ensure messages are logged
This commit is contained in:
parent
64d0146388
commit
4064075df9
@ -463,7 +463,7 @@ sub handle_result {
|
|||||||
my $message = {
|
my $message = {
|
||||||
nick => $stuff->{nick}, user => $stuff->{user}, host => $stuff->{host}, command => $stuff->{command},
|
nick => $stuff->{nick}, user => $stuff->{user}, host => $stuff->{host}, command => $stuff->{command},
|
||||||
message => "And that's all I have to say about that. See $link for full text.",
|
message => "And that's all I have to say about that. See $link for full text.",
|
||||||
checkflood => $stuff->{checkflood}
|
checkflood => 1
|
||||||
};
|
};
|
||||||
$self->add_message_to_output_queue($stuff->{from}, $message, 0);
|
$self->add_message_to_output_queue($stuff->{from}, $message, 0);
|
||||||
} else {
|
} else {
|
||||||
@ -483,7 +483,7 @@ sub handle_result {
|
|||||||
$delay += (length $line) / 7; # additional delay of 7 characters per second typing speed
|
$delay += (length $line) / 7; # additional delay of 7 characters per second typing speed
|
||||||
my $message = {
|
my $message = {
|
||||||
nick => $stuff->{nick}, user => $stuff->{user}, host => $stuff->{host}, command => $stuff->{command},
|
nick => $stuff->{nick}, user => $stuff->{user}, host => $stuff->{host}, command => $stuff->{command},
|
||||||
message => $line, checkflood => $stuff->{checkflood}
|
message => $line, checkflood => 1
|
||||||
};
|
};
|
||||||
$self->add_message_to_output_queue($stuff->{from}, $message, $delay);
|
$self->add_message_to_output_queue($stuff->{from}, $message, $delay);
|
||||||
$delay = duration($delay);
|
$delay = duration($delay);
|
||||||
|
Loading…
Reference in New Issue
Block a user