Added Reload/Unload functions

master
brad k 6 years ago
parent 40d90a3836
commit f38fa328fd

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

Loading…
Cancel
Save