[Alias] cleanup issues missed with #2587 (#2610)

This commit is contained in:
Michael H 2019-04-24 11:43:47 -04:00 committed by Will
parent ad114295e7
commit ec108e7c02
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class Alias(commands.Cog):
extra = [] extra = []
while not view.eof: while not view.eof:
prev = view.index prev = view.index
word = view.get_quoted_word(view) word = view.get_quoted_word()
if len(word) < view.index - prev: if len(word) < view.index - prev:
word = "".join((view.buffer[prev], word, view.buffer[view.index - 1])) word = "".join((view.buffer[prev], word, view.buffer[view.index - 1]))
extra.append(word) extra.append(word)

View File

@ -54,7 +54,7 @@ class AliasEntry:
if bot: if bot:
ret.has_real_data = True ret.has_real_data = True
ret.creator = bot.get_user(int(data["creator"])) ret.creator = bot.get_user(int(data["creator"]))
guild = bot.fetch_guild(int(data["guild"])) guild = bot.get_guild(int(data["guild"]))
ret.guild = guild ret.guild = guild
else: else:
ret.guild = data["guild"] ret.guild = data["guild"]