3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 09:58:42 +02:00

Handle command queue results

This commit is contained in:
Pragmatic Software 2017-08-12 23:42:56 -07:00
parent 7b99c90429
commit 63bbcb0941

View File

@ -458,7 +458,7 @@ sub process_command_queue {
for (my $i = 0; $i < @{$self->{command_queue}->{$channel}}; $i++) {
my $command = $self->{command_queue}->{$channel}->[$i];
if (gettimeofday >= $command->{when}) {
$self->interpret($channel, $command->{nick}, $command->{user}, $command->{host}, 0, $command->{command});
$self->handle_result($channel, $command->{nick}, $command->{user}, $command->{host}, $command->{command}, $command->{command}, $self->interpret($channel, $command->{nick}, $command->{user}, $command->{host}, 0, $command->{command}), 0, 0);
splice @{$self->{command_queue}->{$channel}}, $i--, 1;
}
}