mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 10:59:29 +01:00
Handle command queue results
This commit is contained in:
parent
7b99c90429
commit
63bbcb0941
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user