3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01: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 ($@) { if ($@) {
my $error = "Error in `s${separator}${regex}${separator}${replacement}${separator}${modifiers}`: $@"; my $error = "Error in `s${separator}${regex}${separator}${replacement}${separator}${modifiers}`: $@";
$error =~ s/ at .*$//; $error =~ s/ at .*$//;
$event->{conn}->privmsg($channel, $error); $event->{conn}->privmsg($nick, $error);
return 0; return 0;
} }
} }