mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +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;
|
||||
}
|
||||
|
||||
$input =~ s/'/\\'/g;
|
||||
$input =~ s/'/\\'/g if defined $input;
|
||||
my @args = shellwords($input);
|
||||
|
||||
while ($action =~ m/\$arg\[([^]]+)]/g) {
|
||||
|
Loading…
Reference in New Issue
Block a user