Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Merge pull request #145 from NabDev/hotfix-claim
Browse files Browse the repository at this point in the history
Fixed bug in claim command
  • Loading branch information
Galarzaa90 committed Nov 20, 2018
2 parents 091ffee + f30b328 commit 2c16491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ async def claim(self, ctx: NabCtx, *, char_name: str = None):
if db_char is not None:
owner = self.bot.get_member(db_char["owner"])
# Char already registered to this user
if owner.id == user.id:
if owner and owner.id == user.id:
existent.append("{0.name} ({0.world})".format(char))
continue
else:
Expand Down

0 comments on commit 2c16491

Please sign in to comment.