3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-05 10:58:44 +02:00

Whoops, attempted to modify current $action in loop

This commit is contained in:
Pragmatic Software 2017-08-01 21:31:58 -07:00
parent 06eb50736d
commit 121de07ae2

View File

@ -431,7 +431,8 @@ sub expand_action_arguments {
$input =~ s/'/\\'/g if defined $input; $input =~ s/'/\\'/g if defined $input;
my @args = shellwords($input); my @args = shellwords($input);
while ($action =~ m/\$arg\[([^]]+)]/g) { my $const_action = $action;
while ($const_action =~ m/\$arg\[([^]]+)]/g) {
my $arg = $1; my $arg = $1;
if ($arg eq '*') { if ($arg eq '*') {