mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 12:29:27 +01:00
Fix potential undefined variable warning
This commit is contained in:
parent
3a428a8c1b
commit
fa2865fb10
@ -382,7 +382,7 @@ sub expand_action_arguments {
|
|||||||
$action =~ s/\$args/$input/g;
|
$action =~ s/\$args/$input/g;
|
||||||
}
|
}
|
||||||
|
|
||||||
$input =~ s/'/\\'/g;
|
$input =~ s/'/\\'/g if defined $input;
|
||||||
my @args = shellwords($input);
|
my @args = shellwords($input);
|
||||||
|
|
||||||
while ($action =~ m/\$arg\[([^]]+)]/g) {
|
while ($action =~ m/\$arg\[([^]]+)]/g) {
|
||||||
|
Loading…
Reference in New Issue
Block a user