3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-30 07:59:42 +01:00

No longer remove trailing punctuation from embedded factoid commands

This commit is contained in:
Pragmatic Software 2015-11-26 12:36:36 -08:00
parent 1f1631935b
commit 2962a44c12

View File

@ -114,7 +114,6 @@ sub process_line {
$processed += 100; $processed += 100;
} elsif ($cmd_text =~ s/\B$bot_trigger`([^`]+)// || $cmd_text =~ s/\B$bot_trigger\{([^}]+)//) { } elsif ($cmd_text =~ s/\B$bot_trigger`([^`]+)// || $cmd_text =~ s/\B$bot_trigger\{([^}]+)//) {
my $cmd = $1; my $cmd = $1;
$cmd =~ s/(.)[.!?;,)]$/$1/;
my ($nick) = $cmd_text =~ m/^([^ ,:;]+)/; my ($nick) = $cmd_text =~ m/^([^ ,:;]+)/;
$nick = $self->{pbot}->{nicklist}->is_present($from, $nick); $nick = $self->{pbot}->{nicklist}->is_present($from, $nick);
if ($nick) { if ($nick) {