mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -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,9 +102,8 @@ class Alias:
|
||||
return True
|
||||
if server not in self.aliases:
|
||||
return False
|
||||
for aname in self.aliases[server]:
|
||||
if aname.startswith(alias):
|
||||
return True
|
||||
if alias.split(" ")[0] in self.aliases[server]:
|
||||
return True
|
||||
return False
|
||||
|
||||
def remove_old(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user