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

Add mute infraction check to role restoration #260

Merged
merged 6 commits into from Jan 11, 2019

Conversation

3 participants
@sco1
Copy link
Member

sco1 commented Jan 7, 2019

Adds a check for active mute infractions for the case when a joining user is one who left before their mute role could be removed, leaving them permamuted until an admin can remove the role. For this case, the muted role persistence is skipped if no active mute infraction is present.

Closes: #149

@sco1 sco1 added this to Needs review in Bot Tracking via automation Jan 7, 2019

Show resolved Hide resolved bot/cogs/events.py Outdated
Remove list comprehension since any() works on generators
Co-Authored-By: sco1 <sco1@users.noreply.github.com>
Show resolved Hide resolved bot/cogs/events.py Outdated
Show resolved Hide resolved bot/cogs/events.py Outdated

Bot Tracking automation moved this from Needs review to Reviewer approved Jan 11, 2019

@SebastiaanZ SebastiaanZ merged commit 49c2a6d into master Jan 11, 2019

Bot Tracking automation moved this from Reviewer approved to Done Jan 11, 2019

@SebastiaanZ SebastiaanZ deleted the accidental-permamute branch Jan 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment