3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

Fix ^C logger handling

This commit is contained in:
Pragmatic Software 2021-06-12 02:18:59 -07:00
parent b91fc6ec64
commit f364317334

View File

@ -283,7 +283,7 @@ sub register_signal_handlers {
$SIG{INT} = sub {
my $msg = "SIGINT received, exiting immediately.\n";
if (exists $self->{pbot}->{logger}) {
if (exists $self->{logger}) {
$self->{logger}->log($msg);
} else {
print $msg;