3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-24 19:52:34 +01:00

Plugins/Wttr: run get_wttr() as a process

This commit is contained in:
Pragmatic Software 2020-02-14 21:56:03 -08:00
parent 6d2221e8f0
commit 8695ba4d19

View File

@ -99,7 +99,8 @@ sub wttrcmd {
delete $options{default};
}
return $self->get_wttr($arguments, %options);
$self->{pbot}->{process_manager}->execute_process($stuff, sub { $stuff->{result} = $self->get_wttr($arguments, %options) });
return "";
}
sub get_wttr {