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}");