= Fixed choose to display help when there are no arguments provided
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user