mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 05:49:27 +01:00
Commands: create can-cmd caps only for cmds with cap-required
This commit is contained in:
parent
f9b0940743
commit
64f814fa8d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user