= Cleaning up edge cases

This commit is contained in:
Matthew Cech
2019-04-13 12:34:35 -07:00
parent 330e0c2e08
commit 0912034c2f
9 changed files with 30 additions and 10 deletions
+6
View File
@@ -17,6 +17,12 @@ public class CommandJDoodle extends Command
@Override
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
if(input.args.trim().length() < 1)
{
res.Call(Localizer.Stub("Please provide some java code to get it compiled!"));
return;
}
res.Call(compiler.compileJava(input.args));
}
}