mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Whoops, the || were drunk
This commit is contained in:
parent
0835342246
commit
e7209a9146
@ -79,7 +79,7 @@ sub on_public {
|
|||||||
my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
|
my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
|
||||||
my $t = $replacement;
|
my $t = $replacement;
|
||||||
my $i = 0;
|
my $i = 0;
|
||||||
defined $_ // last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff;
|
defined $_ || last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff;
|
||||||
$t
|
$t
|
||||||
}gxe;
|
}gxe;
|
||||||
} else {
|
} else {
|
||||||
@ -88,7 +88,7 @@ sub on_public {
|
|||||||
my $i = 0;
|
my $i = 0;
|
||||||
my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
|
my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
|
||||||
my $t = $replacement;
|
my $t = $replacement;
|
||||||
defined $_ // last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff;
|
defined $_ || last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff;
|
||||||
$t
|
$t
|
||||||
}xe;
|
}xe;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user