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:
parent
b91fc6ec64
commit
f364317334
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user