added a more lightweight remote execution module

This commit is contained in:
Izaya 2017-04-23 02:47:58 +10:00
parent 14580f7ce1
commit 8beb94836c
1 changed files with 14 additions and 0 deletions

View File

@ -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)