some nsh-auth function name changes
This commit is contained in:
parent
d4d51ac6d6
commit
892d203a5e
@ -1,4 +1,4 @@
|
|||||||
function nshc_w(evPP,nid,pW)
|
function nshcs_w(evPP,nid,pW)
|
||||||
local sI = E().sI or 1
|
local sI = E().sI or 1
|
||||||
chauthc(nid,evPP,pW)
|
chauthc(nid,evPP,pW)
|
||||||
while true do
|
while true do
|
||||||
@ -19,7 +19,7 @@ function nshc_w(evPP,nid,pW)
|
|||||||
ns(nid,evPP,"exit")
|
ns(nid,evPP,"exit")
|
||||||
end
|
end
|
||||||
|
|
||||||
function nshc(P,nid,pW)
|
function nshcs(P,nid,pW)
|
||||||
pW=(pW or readln("*"))
|
pW=(pW or readln("*"))
|
||||||
ns(nid,P,"initnsh")
|
ns(nid,P,"initnsh")
|
||||||
while true do
|
while true do
|
||||||
@ -30,5 +30,5 @@ function nshc(P,nid,pW)
|
|||||||
end
|
end
|
||||||
C.yield()
|
C.yield()
|
||||||
end
|
end
|
||||||
nshc_w(ev[4],nid,pW)
|
nshcs_w(ev[4],nid,pW)
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
function nshd_w(evPP,cA,sI,pW)
|
function nshds_w(evPP,cA,sI,pW)
|
||||||
s("nshd - "..tostring(sI),function()
|
s("nshds - "..tostring(sI),function()
|
||||||
chauths(cA,evPP,pW)
|
chauths(cA,evPP,pW)
|
||||||
luash({["sI"]=sI})
|
luash({["sI"]=sI})
|
||||||
while true do
|
while true do
|
||||||
@ -19,8 +19,8 @@ s("nshd - "..tostring(sI),function()
|
|||||||
end,{["sI"]=sI})
|
end,{["sI"]=sI})
|
||||||
end
|
end
|
||||||
|
|
||||||
function nshd(P,pW)
|
function nshds(P,pW)
|
||||||
s("nshd",function()
|
s("nshds",function()
|
||||||
local Cc=1
|
local Cc=1
|
||||||
while true do
|
while true do
|
||||||
if ev[1] == "net_msg" and ev[3] == P then
|
if ev[1] == "net_msg" and ev[3] == P then
|
||||||
@ -28,8 +28,8 @@ function nshd(P,pW)
|
|||||||
nnID="nsh-"..tostring(Cc)
|
nnID="nsh-"..tostring(Cc)
|
||||||
Cc=Cc+1
|
Cc=Cc+1
|
||||||
ns(ev[2],P,nnID)
|
ns(ev[2],P,nnID)
|
||||||
nshd_w(nnID,ev[2],nnID,pW)
|
nshds_w(nnID,ev[2],nnID,pW)
|
||||||
print("[nshd]Spawned "..nnID.." for "..tostring(ev[2]))
|
print("[nshds]Spawned "..nnID.." for "..tostring(ev[2]))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
C.yield()
|
C.yield()
|
||||||
|
Loading…
Reference in New Issue
Block a user