Fix off-by-one error in MAXIMUM_REMINDERS check#3497
Open
oliveman-au wants to merge 2 commits intopython-discord:mainfrom
Open
Fix off-by-one error in MAXIMUM_REMINDERS check#3497oliveman-au wants to merge 2 commits intopython-discord:mainfrom
oliveman-au wants to merge 2 commits intopython-discord:mainfrom
Conversation
Contributor
|
The off-by-one error fix seems fine, but the other hunk seems unrelated (and parts of it are already in another PR). |
Author
Author
yeah sorry about that, the branch was accidentally built on top of the jump_url fix. the only intentional change here is the >= fix, the other hunk is already covered in #3496 |
Member
|
@oliveman-au This PR should be rebased on Make sure that all your branches are always based on main, not on other branches you are working on. Every PR should contain an atomic change, not be mixed with other changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


MAXIMUM_REMINDERSis set to 5 and the delete command docstring confirms the limit is 5, but the check uses>instead of>=, meaning users can actually create 6 reminders before being blocked.Changed
> MAXIMUM_REMINDERSto>= MAXIMUM_REMINDERSso the limit is enforced correctly.