You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.3 KiB

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Monday, November 30, 2015, 8:44 PM -->
<!-- MuClient version 4.96 -->
<!-- Plugin "Aard_Who_Here" generated by Plugin Wizard -->
<muclient>
<plugin
name="LuaLoader"
author="KoopaTroopa"
id="327a6b28fb4470f248955cda"
language="Lua"
purpose="Load KoopaPlugins"
date_written="2019-02-27 20:44:07"
requires="4.30"
version="1.0"
>
<description trim="y">
<![CDATA[
-----------------------------------------------------------------------------
This is how we roll
-----------------------------------------------------------------------------
]]>
</description>
</plugin>
<!-- Get our standard constants -->
<include name="constants.lua"/>
<triggers>
</triggers>
<aliases>
<alias
match="^llload$"
regexp="y"
enabled="y"
sequence="100"
script="load"
>
</alias>
<alias
match="^llreload$"
regexp="y"
enabled="y"
sequence="100"
script="reload"
>
</alias>
<alias
match="^llunload$"
regexp="y"
enabled="y"
sequence="100"
script="timebomb"
>
</alias>
</aliases>
<script>
local http = require("socket.http")
local https = require 'ssl.https'
function load()
msg = "Please paste the codestring Koopa has asked you to load into the box below."
title = "Feed Me!"
string = utils.inputbox ( msg, title, default, font, fontsize, extras )
Note(string)
if string.find(string, "https://") then
response = https.request( string )
if string.find(response, "Koopa") then
f = assert (loadstring (response))
f ()
else
Note("Error: The response from the server is not valid")
end
else
Note("Error: The URL supplied is not valid")
end
end
function unload()
process = nil
end
function reload()
timebomb()
load()
end
function OnPluginLineReceived( line )
if process~=nil then process(line) end
end
function OnPluginInstall()
ColourNote("white", "", "----------------------------------------------------------------------")
ColourNote("steelblue", "", " Koopa's LuaLoader installed. Type ", "white", "", "llload", "steelblue", "", " to load a script-string.")
ColourNote("white", "", "----------------------------------------------------------------------")
end
function timebomb()
--nothing here
end
</script>
</muclient>