mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
higher chance of equality comparison with existing commands
This commit is contained in:
parent
f03b44d57a
commit
4ad66d82d0
@ -117,7 +117,7 @@ class Alias:
|
|||||||
def part_of_existing_command(self, alias, server):
|
def part_of_existing_command(self, alias, server):
|
||||||
'''Command or alias'''
|
'''Command or alias'''
|
||||||
for command in self.bot.commands:
|
for command in self.bot.commands:
|
||||||
if alias.lower() == command:
|
if alias.lower() == command.lower():
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user