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

reminders: verify that member can run remindme in target channel #1674

Conversation

jo3-l
Copy link
Contributor

@jo3-l jo3-l commented Jun 19, 2024

Previously, if a member used remindme ... -channel #foo and remindme was disabled via command/channel overrides in channel #foo, the command would still go through as long as the member had send message permissions in #foo. This PR fixes remindme to check command overrides as well.

@jo3-l jo3-l force-pushed the fix/reminder-target-channel-check-cmd-overrides branch from caa9d95 to 733728f Compare June 19, 2024 22:50
jo3-l added 2 commits June 20, 2024 14:37
…d.GetSettings

Previously this logic was done by the caller, but it should be the responsibility of the GetSettings procedure. This commit also incidentally fixes a minor bug in CommonContainerNotFoundHandler, which previously did not consider command overrides properly if used in a thread.
@jo3-l jo3-l force-pushed the fix/reminder-target-channel-check-cmd-overrides branch from 733728f to 8b4c9c9 Compare June 20, 2024 21:37
@ashishjh-bst ashishjh-bst merged commit b213ce5 into botlabs-gg:dev Jun 21, 2024
1 check passed
ashishjh-bst pushed a commit to ashishjh-bst/yagpdb that referenced this pull request Jun 27, 2024
…otlabs-gg#1674)

* commands: move code handling cmd overrides for threads into YagCommand.GetSettings

Previously this logic was done by the caller, but it should be the responsibility of the GetSettings procedure. This commit also incidentally fixes a minor bug in CommonContainerNotFoundHandler, which previously did not consider command overrides properly if used in a thread.

* reminders: verify that member can run `remindme` in target channel
ashishjh-bst pushed a commit to ashishjh-bst/yagpdb that referenced this pull request Jun 27, 2024
…otlabs-gg#1674)

* commands: move code handling cmd overrides for threads into YagCommand.GetSettings

Previously this logic was done by the caller, but it should be the responsibility of the GetSettings procedure. This commit also incidentally fixes a minor bug in CommonContainerNotFoundHandler, which previously did not consider command overrides properly if used in a thread.

* reminders: verify that member can run `remindme` in target channel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants