Skip to content

Commit

Permalink
Insurance for new name system
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBSG committed Nov 2, 2024
1 parent a432007 commit 039ba25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/extralife.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async def donation_check(self):
match = re.match(r'[\s\S]+#\d{4}|[a-z0-9._]+', donor_name)
if match:
# Donor name format matches a Discord username
member = discord.utils.find(lambda m: str(m) == match.group(0), self.guild.members)
member = discord.utils.find(lambda m: str(m).lower() == match.group(0).lower(), self.guild.members)
if member:
if self.donorRole not in member.roles:
try:
Expand Down

0 comments on commit 039ba25

Please sign in to comment.