= Fixed choose to display help when there are no arguments provided

This commit is contained in:
Matthew Cech
2019-06-17 22:01:47 -07:00
parent 85c30f9e84
commit ede40ef9e3
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -19,7 +19,14 @@ public class CommandChoose extends Command
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
if(input.args.trim().length() == 0)
{
res.Call(Stats.instance.GetHelpText(input.key));
return;
}
String [] choices = input.args.split(",");
if(choices.length == 1)
{
res.Call(LocStrings.Stub("ChooseOne"));