Skip to content

Commit

Permalink
[Casino] Fix for membership assignment local mode
Browse files Browse the repository at this point in the history
Remember that if a user does not have any games played, or any data written to the Config file, they will be passed over in the member check and a membership will not be assigned until they are present in the Config file.

This fix is thanks to XamynTV#8398's research into the issue, and for posting a detailed walkthrough of the issue in the support channel.
  • Loading branch information
aikaterna authored Feb 6, 2022
1 parent df4118c commit a37ddc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions casino/casino.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Third-Party Libraries
from tabulate import tabulate

__version__ = "2.4.10"
__version__ = "2.4.11"
__author__ = "Redjumpman"

_ = Translator("Casino", __file__)
Expand Down Expand Up @@ -882,11 +882,11 @@ async def process_user(self, memberships, user, _global=False):
else:
qualified.append((name, requirements["Access"]))
else:
role_list = [x.name for x in user.roles]
role_list += [x.mention for x in user.roles]
if requirements["Credits"] and bal < requirements["Credits"]:
continue
elif requirements["Role"] and requirements["Role"] not in [
x.name for x in user.roles
]:
elif requirements["Role"] and requirements["Role"] not in role_list:
continue
elif (
requirements["DOS"]
Expand Down

0 comments on commit a37ddc9

Please sign in to comment.