From 3fa4204eba40235ae88cd17f8fe6cee53b94f4e8 Mon Sep 17 00:00:00 2001 From: Arcidayne <9382522b@opayq.com> Date: Mon, 21 Dec 2015 12:02:04 -0800 Subject: [PATCH] Updater file --- Updater/Updater.xml | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/Updater/Updater.xml b/Updater/Updater.xml index 6adcc78..9eb9cfe 100644 --- a/Updater/Updater.xml +++ b/Updater/Updater.xml @@ -7,7 +7,7 @@ tonumber(pversion) then - ColourNote("white", "blue", "Updating from " .. pversion .. " to " .. raw_version .. "!") - UnloadPlugin(pid) + if raw_version == pversion then + ColourNote("white", "blue", GetPluginInfo(pid, 1) .. " is up-to-date.") + elseif raw_version > pversion then + ColourNote("white", "blue", "Updating from version " .. pversion .. " to " .. raw_version .. ". Do not touch anything.") local file = io.open(pfile, "w") file:write(page) file:close() - --DoAfterSpecial(3, "LoadPlugin(" .. pid .. ")", 12) end raw_version = nil - - CallPlugin('e6cd5104e883a1dd9c4362e2', "remove_update", GetPluginID()) - --UnloadPlugin(GetPluginID()) - --os.remove(GetPluginInfo(GetPluginID(), 6)) -end - -function OnPluginInstall() - CallPlugin('e6cd5104e883a1dd9c4362e2',"update_now") end - ]]> - -