mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
ProcessManager: properly add "can-kill" cap without triggering saving
This commit is contained in:
parent
16ac6d95fb
commit
74b3f35d3e
@ -24,7 +24,7 @@ sub initialize {
|
||||
my ($self, %conf) = @_;
|
||||
$self->{pbot}->{commands}->register(sub { $self->ps_cmd(@_) }, 'ps', 0);
|
||||
$self->{pbot}->{commands}->register(sub { $self->kill_cmd(@_) }, 'kill', 1);
|
||||
$self->{pbot}->{capabilities}->add('admin', 'can-kill');
|
||||
$self->{pbot}->{capabilities}->add('admin', 'can-kill', 1);
|
||||
$self->{processes} = {};
|
||||
|
||||
# automatically reap children processes in background
|
||||
|
Loading…
Reference in New Issue
Block a user