Skip to content

Commit

Permalink
check if member.name and member.nick are None before using them
Browse files Browse the repository at this point in the history
  • Loading branch information
FO-nTTaX committed Oct 20, 2022
1 parent 256b536 commit 28659db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftsbot/cogs/antispam.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def on_member_join(
(
member.name is not None
and 'twitter.com/h0nde' in member.name.lower()
)
)
or (
member.nick is not None
and 'twitter.com/h0nde' in member.nick.lower()
Expand Down

0 comments on commit 28659db

Please sign in to comment.