mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
Modules: minor syntax formatting correction
This commit is contained in:
parent
c400ffda10
commit
80a4060dab
@ -114,8 +114,11 @@ sub launch_module {
|
|||||||
|
|
||||||
if ($@) {
|
if ($@) {
|
||||||
my $error = $@;
|
my $error = $@;
|
||||||
if ($error =~ m/timeout on timer/) { ($exitval, $stdout, $stderr) = (-1, "$context->{trigger}: timed-out", ''); }
|
if ($error =~ m/timeout on timer/) {
|
||||||
else { ($exitval, $stdout, $stderr) = (-1, '', $error); }
|
($exitval, $stdout, $stderr) = (-1, "$context->{trigger}: timed-out", '');
|
||||||
|
} else {
|
||||||
|
($exitval, $stdout, $stderr) = (-1, '', $error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (length $stderr) {
|
if (length $stderr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user