!!smq can now be used on it's own and act like !!smq 0 (reset max queue)

This commit is contained in:
Kwoth 2017-02-05 07:52:39 +01:00
parent 1e5b7df47f
commit 22eb42ff8f

View File

@ -556,7 +556,7 @@ namespace NadekoBot.Modules.Music
[NadekoCommand, Usage, Description, Aliases] [NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)] [RequireContext(ContextType.Guild)]
public async Task SetMaxQueue(uint size) public async Task SetMaxQueue(uint size = 0)
{ {
MusicPlayer musicPlayer; MusicPlayer musicPlayer;
if (!MusicPlayers.TryGetValue(Context.Guild.Id, out musicPlayer)) if (!MusicPlayers.TryGetValue(Context.Guild.Id, out musicPlayer))