removed "" as a possible username to count
This commit is contained in:
parent
0306e8af1c
commit
56eebe53e9
1 changed files with 4 additions and 2 deletions
|
|
@ -39,6 +39,7 @@ class Highscores(commands.Cog):
|
|||
if user not in user_message_counts and user != "" and len(user) <= 32:
|
||||
user_message_counts[user] = 1
|
||||
else:
|
||||
if user != "":
|
||||
user_message_counts[user] += 1
|
||||
except Exception as error:
|
||||
self.bot.logger.exception("Error occurred in highscores")
|
||||
|
|
@ -90,6 +91,7 @@ class Highscores(commands.Cog):
|
|||
if user not in user_message_counts and user != "" and len(user) <= 32:
|
||||
user_message_counts[user] = 1
|
||||
else:
|
||||
if user != "":
|
||||
user_message_counts[user] += 1
|
||||
except Exception as error:
|
||||
self.bot.logger.exception("Error occurred in highscores_server")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue