3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 15:29:32 +01:00

Commands: create can-cmd caps only for cmds with cap-required

This commit is contained in:
Pragmatic Software 2020-02-03 23:55:24 -08:00
parent f9b0940743
commit 64f814fa8d

View File

@ -65,8 +65,7 @@ sub register {
}
# add can-cmd capability
$self->{pbot}->{capabilities}->add("can-$name", undef, 1);
$self->{pbot}->{capabilities}->add("can-$name", undef, 1) if $requires_cap;
return $ref;
}