mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-29 23:39:24 +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
|
# 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;
|
return $ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user