3
0
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:
Pragmatic Software 2015-09-08 01:30:08 -07:00
parent 3a428a8c1b
commit fa2865fb10

View File

@ -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) {