mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-10 20:12:35 +01:00
Add missing $got_sub = 1 to replace block
This commit is contained in:
parent
24527569ab
commit
b1e9ed4e80
@ -137,6 +137,7 @@ my $prevchange = $last_code[0];
|
|||||||
my $got_changes = 0;
|
my $got_changes = 0;
|
||||||
|
|
||||||
while($subcode =~ m/^\s*(and)?\s*replace\s*([^']+)?\s*'.*'\s*with\s*'.*'/i) {
|
while($subcode =~ m/^\s*(and)?\s*replace\s*([^']+)?\s*'.*'\s*with\s*'.*'/i) {
|
||||||
|
$got_sub = 1;
|
||||||
my $modifier = 'first';
|
my $modifier = 'first';
|
||||||
|
|
||||||
$subcode =~ s/^\s*(and)?\s*//;
|
$subcode =~ s/^\s*(and)?\s*//;
|
||||||
|
Loading…
Reference in New Issue
Block a user