3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 19:52:34 +01: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++) { for (my $i = 0; $i < @{$self->{command_queue}->{$channel}}; $i++) {
my $command = $self->{command_queue}->{$channel}->[$i]; my $command = $self->{command_queue}->{$channel}->[$i];
if (gettimeofday >= $command->{when}) { 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; splice @{$self->{command_queue}->{$channel}}, $i--, 1;
} }
} }