From 982cefcebdaac74a89d387b8312d2844f3243e5f Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 31 Jan 2020 02:15:20 -0800 Subject: [PATCH] Plugin/TypoSub: final closing slash is now optional --- Plugins/TypoSub.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/TypoSub.pm b/Plugins/TypoSub.pm index a6b9ef27..55dc1358 100644 --- a/Plugins/TypoSub.pm +++ b/Plugins/TypoSub.pm @@ -57,7 +57,7 @@ sub on_public { if ($msg =~ m/^\s*s([[:punct:]])/) { my $separator = $1; my $sep = quotemeta $separator; - if ($msg =~ m/^\s*s${sep}(.*?)(?{msg} =~ m/^(?:$bot_trigger|$botnick.?)/; - next if $message->{msg} =~ m/^\s*s[[:punct:]](.*?)[[:punct:]](.*?)[[:punct:]]g?\s*$/; + next if $message->{msg} =~ m/^\s*s[[:punct:]](.*?)[[:punct:]](.*?)[[:punct:]]?g?\s*$/; if ($message->{msg} =~ /$rx/) { my $hostmask = $self->{pbot}->{messagehistory}->{database}->find_message_account_by_id($message->{id});