From f364317334908b701d0163fa0d38dace7ea4f716 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 12 Jun 2021 02:18:59 -0700 Subject: [PATCH] Fix ^C logger handling --- PBot/PBot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/PBot.pm b/PBot/PBot.pm index 848f2104..4ed4fb37 100644 --- a/PBot/PBot.pm +++ b/PBot/PBot.pm @@ -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;