Added Reload/Unload functions

master
brad k 6 years ago
parent 40d90a3836
commit f38fa328fd

@ -38,6 +38,14 @@
regexp="y"
enabled="y"
sequence="100"
script="load"
>
</alias>
<alias
match="^llreload$"
regexp="y"
enabled="y"
sequence="100"
script="reload"
>
</alias>
@ -46,7 +54,7 @@
regexp="y"
enabled="y"
sequence="100"
script="unload"
script="timebomb"
>
</alias>
</aliases>
@ -56,7 +64,7 @@
local http = require("socket.http")
local https = require 'ssl.https'
function reload()
function load()
msg = "Please paste the codestring Koopa has asked you to load into the box below."
title = "Feed Me!"
@ -83,6 +91,12 @@ process = nil
end
function reload()
timebomb()
load()
end
function OnPluginLineReceived( line )
if process~=nil then process(line) end
@ -95,6 +109,9 @@ function OnPluginInstall()
ColourNote("white", "", "----------------------------------------------------------------------")
end
function timebomb()
--nothing here
end
</script>

Loading…
Cancel
Save