mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Mod] Removed pointless .keys() call for better performances (#499)
This commit is contained in:
parent
c34bf36dee
commit
5ae98a046e
@ -1310,7 +1310,7 @@ class Mod:
|
||||
|
||||
async def check_names(self, before, after):
|
||||
if before.name != after.name:
|
||||
if before.id not in self.past_names.keys():
|
||||
if before.id not in self.past_names:
|
||||
self.past_names[before.id] = [after.name]
|
||||
else:
|
||||
if after.name not in self.past_names[before.id]:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user