mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
only stop adding alias if the first WORD is already an alias in
multi-word alias names
This commit is contained in:
parent
74332e2cda
commit
072788a1cc
@ -102,8 +102,7 @@ class Alias:
|
|||||||
return True
|
return True
|
||||||
if server not in self.aliases:
|
if server not in self.aliases:
|
||||||
return False
|
return False
|
||||||
for aname in self.aliases[server]:
|
if alias.split(" ")[0] in self.aliases[server]:
|
||||||
if aname.startswith(alias):
|
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user