3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

MiscCommands: Fix die command

This commit is contained in:
Pragmatic Software 2021-06-11 16:49:56 -07:00
parent 632c201e19
commit 924b359842

View File

@ -126,7 +126,7 @@ sub cmd_die {
$self->{pbot}->{logger}->log("$context->{hostmask} made me exit.\n");
$self->{pbot}->{conn}->privmsg($context->{from}, "Good-bye.") if $context->{from} ne 'stdin@pbot';
$self->{pbot}->{conn}->quit("Departure requested.") if defined $self->{pbot}->{conn};
$self->pbot->atexit();
$self->{pbot}->atexit();
exit 0;
}