= Cleaning up edge cases
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user