plugin_page = async.doAsyncRemoteRequest(raw, function(retval, page, status, headers, full_status, request_url) if status == 200 then raw_version = page:match('%s%s+version="([0-9%.]+)"') end end, "HTTPS")
end
end
if raw_version == GetPluginInfo(GetPluginID(), 19) then
if tonumber(raw_version) == pversion then
ColourNote("white", "blue", GetPluginInfo(pid, 1) .. " is up-to-date.")
ColourNote("white", "blue", GetPluginInfo(pid, 1) .. " is up-to-date.")
elseif to_number(raw_version) > pversion then
elseif raw_version > GetPluginInfo(GetPluginID(), 19) then
ColourNote("white", "blue", "Updating from version " .. pversion .. " to " .. raw_version .. ". Do not touch anything.")
ColourNote("white", "blue", "Updating from version " .. GetPluginInfo(GetPluginID(), 19) .. " to " .. raw_version .. ". Do not touch anything.")
local file = io.open(pfile, "w")
local file = io.open(GetPluginInfo(GetPluginID(), 6), "w")