Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[p]slash enablecog/disablecog improperly handle force enabled commands #6487

Open
Flame442 opened this issue Dec 11, 2024 · 0 comments
Open
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.

Comments

@Flame442
Copy link
Member

Flame442 commented Dec 11, 2024

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 in extras set to True 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?

  1. [p]repo add zeph https://github.com/Zephyrkul/FluffyCogs
  2. [p]cog install zeph onetrueslash
  3. [p]load onetrueslash
  4. [p]slash enablecog onetrueslash - Lists the command but should not, as it is force enabled
    5 [p]slash disablecog onetrueslash - Lists the command but should not, as it is force enabled

Anything else?

No response

@Flame442 Flame442 added Category: Core - Bot Commands This is related to core commands (Core and CogManagerUI cog classes). Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. labels Dec 11, 2024
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant