diff --git a/modules/applications/rexec.lua b/modules/applications/rexec.lua new file mode 100644 index 0000000..4704d9f --- /dev/null +++ b/modules/applications/rexec.lua @@ -0,0 +1,14 @@ +reP,tREs=4,{} +s("rexec",function() + while true do + if ev[1] == "net_msg" then + local V=false + for k,v in ipairs(tREs) do if ev[2] == v then V=true end end + if ev[3] == reP and V then + ns(ev[2],ev[3],pcall(load(msg))) + end + end + C.yield() + end +end) +