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:
parent
03c5418718
commit
bc98a7642a
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user