From 00e59dd34bb92878e6051e37210ccda3e51df2bb Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sun, 22 May 2016 13:36:14 +0200 Subject: [PATCH] .whoplays no longer needs quotes for multiword games --- NadekoBot/Modules/Administration/AdministrationModule.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/NadekoBot/Modules/Administration/AdministrationModule.cs b/NadekoBot/Modules/Administration/AdministrationModule.cs index b4ad9f43..ab0649e1 100644 --- a/NadekoBot/Modules/Administration/AdministrationModule.cs +++ b/NadekoBot/Modules/Administration/AdministrationModule.cs @@ -947,11 +947,13 @@ namespace NadekoBot.Modules.Administration }); cgb.CreateCommand(Prefix + "whoplays") - .Description("Shows a list of users who are playing the specified game") - .Parameter("game") + .Description("Shows a list of users who are playing the specified game.") + .Parameter("game", ParameterType.Unparsed) .Do(async e => { - var game = e.GetArg("game").Trim().ToUpperInvariant(); + var game = e.GetArg("game")?.Trim().ToUpperInvariant(); + if (string.IsNullOrWhiteSpace(game)) + return; var en = e.Server.Users .Where(u => u.CurrentGame?.ToUpperInvariant() == game) .Select(u => $"{u.Name}");