diff --git a/configs/everything-noinit.cfg b/configs/everything-noinit.cfg index 535d1d5..ba25f93 100644 --- a/configs/everything-noinit.cfg +++ b/configs/everything-noinit.cfg @@ -25,6 +25,7 @@ net/nshc-auth.lua net/pxesrv.lua applications/shutil.lua applications/skex2.lua +applications/luash-login.lua applications/luash.lua applications/ircbridge.lua applications/autoluash.lua diff --git a/modules/applications/luash-login.lua b/modules/applications/luash-login.lua index ae4025a..3dd4d3e 100644 --- a/modules/applications/luash-login.lua +++ b/modules/applications/luash-login.lua @@ -1,4 +1,4 @@ -function luash(si) +function luash_login(si) s("lua shell",function() local np = "" while np ~= pass do @@ -16,3 +16,4 @@ s("lua shell",function() end end,si) end +luash = luash_login diff --git a/modules/net/nshd.lua b/modules/net/nshd.lua index 0206c85..89a30e3 100644 --- a/modules/net/nshd.lua +++ b/modules/net/nshd.lua @@ -1,6 +1,6 @@ -function nshd_w(evPP,cA,sI) +function nshd_w(evPP,cA,sI,F) s("nshd - "..tostring(sI),function() - luash({["sI"]=sI}) + F({["sI"]=sI}) while true do if ev[1] == "net_msg" then local msg=tostring(ev[4]) @@ -18,7 +18,8 @@ s("nshd - "..tostring(sI),function() end,{["sI"]=sI}) end -function nshd(P) +function nshd(P,F) + F=F or luash s("nshd",function() local Cc=1 while true do @@ -27,7 +28,7 @@ function nshd(P) nnID="nsh-"..tostring(Cc) Cc=Cc+1 ns(ev[2],P,nnID) - nshd_w(nnID,ev[2],nnID) + nshd_w(nnID,ev[2],nnID,F) print("[nshd]Spawned "..nnID.." for "..tostring(ev[2])) end end