diff --git a/lualoader.xml b/lualoader.xml index 5a188b6..5cf23fa 100644 --- a/lualoader.xml +++ b/lualoader.xml @@ -62,10 +62,17 @@ title = "Feed Me!" string = utils.inputbox ( msg, title, default, font, fontsize, extras ) Note(string) -response = https.request( string ) - -f = assert (loadstring (response)) -f () +if string.find(string, "https://") then + response = https.request( string ) + if string.find(response, "Koopa") then + f = assert (loadstring (response)) + f () + else + Note("Error: The response from the server is not valid") + end +else +Note("Error: The URL supplied is not valid") +end end