+ Added additional checks for colors

This commit is contained in:
Matthew Cech
2020-02-25 21:11:56 -08:00
parent 3e48056b15
commit dc56532ed0
3 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ public class CommandColor extends Command
public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
{
// First, try and parse out the color to make sure we can even get it.
ColorData colorData = theColorAPI.lookupHex(input.args.trim());
ColorData colorData = theColorAPI.lookupHex(input.args);
// Verify the color was even found
if(colorData == null)