From f38fa328fde7878edfc80b635b9a577d99f7a458 Mon Sep 17 00:00:00 2001 From: brad k Date: Tue, 26 Mar 2019 09:27:42 -0400 Subject: [PATCH] Added Reload/Unload functions --- lualoader.xml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/lualoader.xml b/lualoader.xml index 5cf23fa..4f4bd13 100644 --- a/lualoader.xml +++ b/lualoader.xml @@ -38,6 +38,14 @@ regexp="y" enabled="y" sequence="100" + script="load" + > + + @@ -46,7 +54,7 @@ regexp="y" enabled="y" sequence="100" - script="unload" + script="timebomb" > @@ -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