[Audio] Add songs when search-queuing (#2513)

Searching for a song and pressing the reaction to queue a song would not add the song to the queue if `[p]audioset maxlength` was off. This was an omission from #2465.
This commit is contained in:
aikaterna 2019-03-06 19:12:15 -08:00 committed by Toby Harradine
parent d52b3eaf21
commit 1c22b212c2

View File

@ -2212,6 +2212,8 @@ class Audio(commands.Cog):
player.add(ctx.author, search_choice) player.add(ctx.author, search_choice)
else: else:
return await self._embed_msg(ctx, _("Track exceeds maximum length.")) return await self._embed_msg(ctx, _("Track exceeds maximum length."))
else:
player.add(ctx.author, search_choice)
if not player.current: if not player.current:
await player.play() await player.play()
await ctx.send(embed=embed) await ctx.send(embed=embed)