mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 18:39:35 +01:00
MiscCommands: Fix die
command
This commit is contained in:
parent
632c201e19
commit
924b359842
@ -126,7 +126,7 @@ sub cmd_die {
|
|||||||
$self->{pbot}->{logger}->log("$context->{hostmask} made me exit.\n");
|
$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}->privmsg($context->{from}, "Good-bye.") if $context->{from} ne 'stdin@pbot';
|
||||||
$self->{pbot}->{conn}->quit("Departure requested.") if defined $self->{pbot}->{conn};
|
$self->{pbot}->{conn}->quit("Departure requested.") if defined $self->{pbot}->{conn};
|
||||||
$self->pbot->atexit();
|
$self->{pbot}->atexit();
|
||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user