Plugin/TypoSub: /msg error to user instead of channel

This commit is contained in:
Pragmatic Software 2020-02-05 22:58:28 -08:00
parent 03c5418718
commit bc98a7642a
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ sub on_public {
if ($@) {
my $error = "Error in `s${separator}${regex}${separator}${replacement}${separator}${modifiers}`: $@";
$error =~ s/ at .*$//;
$event->{conn}->privmsg($channel, $error);
$event->{conn}->privmsg($nick, $error);
return 0;
}
}