diff --git a/Plugins/TypoSub.pm b/Plugins/TypoSub.pm index 11e51a5f..0373a719 100644 --- a/Plugins/TypoSub.pm +++ b/Plugins/TypoSub.pm @@ -51,6 +51,7 @@ sub on_public { if ($msg =~ m/^\s*s${sep}(.*?)(? 1; my $rx = qr/$regex/; my $messages = $self->{pbot}->{messagehistory}->{database}->get_recent_messages_from_channel($channel, 50, $self->{pbot}->{messagehistory}->{MSG_CHAT}, 'DESC'); @@ -82,6 +83,7 @@ sub on_public { defined $_ || last, ++$i, $t =~ s|[\$\\]$i|$_|g for @stuff; $t }gxe; + $text = substr($text, 0, 350); } else { $text =~ s{$rx} {