From 67f6c1d39fe7e6b0eb7fb207031abeb24c176b99 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 13 Jul 2021 14:03:25 -0700 Subject: [PATCH] Plugins/TypoSub: silence warning when no modifiers --- Plugins/TypoSub.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/TypoSub.pm b/Plugins/TypoSub.pm index 0c4e958d..f54fb6c2 100644 --- a/Plugins/TypoSub.pm +++ b/Plugins/TypoSub.pm @@ -77,7 +77,7 @@ sub on_public { if ($nick eq $target) { $result = "$nick meant to say: "; } else { $result = "$nick thinks $target meant to say: "; } my $text = $message->{msg}; - if ($modifiers =~ m/g/) { + if ($modifiers and $modifiers =~ m/g/) { $text =~ s{$rx} { my @stuff = ($1, $2, $3, $4, $5, $6, $7, $8, $9);