mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-03 17:39:29 +01:00
Whoops, forgot a/an in Factoid expansion replacement
This commit is contained in:
parent
2385ef4822
commit
31e38bf2fe
@ -485,9 +485,9 @@ sub expand_factoid_vars {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (not length $mylist[$line]) {
|
if (not length $mylist[$line]) {
|
||||||
substr($action, $offset) =~ s/\s+\$$v$modifier//;
|
substr($action, $offset) =~ s/\s*$a\$$v$modifier//;
|
||||||
} else {
|
} else {
|
||||||
substr($action, $offset) =~ s/\$$v$modifier/$mylist[$line]/;
|
substr($action, $offset) =~ s/$a\$$v$modifier/$mylist[$line]/;
|
||||||
}
|
}
|
||||||
$offset = $+[0];
|
$offset = $+[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user