[p]slash enablecog/disablecog
improperly handle force enabled commands
#6487
Labels
Category: Core - Bot Commands
This is related to core commands (Core and CogManagerUI cog classes).
Status: Needs Triage
This has not been labeled or discussed for handling yet.
Type: Bug
Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
What Red version are you using?
3.5.11
Cog name
Core
Command name
[p]slash enablecog
and[p]slash disablecog
Describe the issue
These commands still attempt to enable/disable commands which feature the
red_force_enable
key inextras
set toTrue
when their cog is used with one of these commands. These commands should be filtered out of consideration by checking for this key, similar to how[p]slash disable
currently does.How can we reproduce this error?
[p]repo add zeph https://github.com/Zephyrkul/FluffyCogs
[p]cog install zeph onetrueslash
[p]load onetrueslash
[p]slash enablecog onetrueslash
- Lists the command but should not, as it is force enabled5
[p]slash disablecog onetrueslash
- Lists the command but should not, as it is force enabledAnything else?
No response
The text was updated successfully, but these errors were encountered: