mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-02 10:09:32 +01:00
Plugins/TypoSub: silence warning when no modifiers
This commit is contained in:
parent
3f74dd1215
commit
67f6c1d39f
@ -77,7 +77,7 @@ sub on_public {
|
|||||||
if ($nick eq $target) { $result = "$nick meant to say: "; }
|
if ($nick eq $target) { $result = "$nick meant to say: "; }
|
||||||
else { $result = "$nick thinks $target meant to say: "; }
|
else { $result = "$nick thinks $target meant to say: "; }
|
||||||
my $text = $message->{msg};
|
my $text = $message->{msg};
|
||||||
if ($modifiers =~ m/g/) {
|
if ($modifiers and $modifiers =~ m/g/) {
|
||||||
$text =~ s{$rx}
|
$text =~ s{$rx}
|
||||||
{
|
{
|
||||||
my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
|
my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);
|
||||||
|
Loading…
Reference in New Issue
Block a user