3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-07 03:49:04 +02:00

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

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;
}
}