3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Remove left-over capture group

This commit is contained in:
Pragmatic Software 2018-04-01 16:36:08 -07:00
parent 40212c4b91
commit fd36d91ac4

View File

@ -513,7 +513,7 @@ sub expand_factoid_vars {
$self->{pbot}->{logger}->log((" " x $offset) . "^\n");
}
substr($action, $offset) =~ s/($a\$$v$modifier)/$mylist[$line]/;
substr($action, $offset) =~ s/$a\$$v$modifier/$mylist[$line]/;
$offset += $-[0] + length $mylist[$line];
if ($debug) {