some nsh-auth function name changes

This commit is contained in:
Izaya 2017-06-19 18:36:55 +00:00
parent d4d51ac6d6
commit 892d203a5e
2 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
function nshc_w(evPP,nid,pW)
function nshcs_w(evPP,nid,pW)
local sI = E().sI or 1
chauthc(nid,evPP,pW)
while true do
@ -19,7 +19,7 @@ function nshc_w(evPP,nid,pW)
ns(nid,evPP,"exit")
end
function nshc(P,nid,pW)
function nshcs(P,nid,pW)
pW=(pW or readln("*"))
ns(nid,P,"initnsh")
while true do
@ -30,5 +30,5 @@ function nshc(P,nid,pW)
end
C.yield()
end
nshc_w(ev[4],nid,pW)
nshcs_w(ev[4],nid,pW)
end

View File

@ -1,5 +1,5 @@
function nshd_w(evPP,cA,sI,pW)
s("nshd - "..tostring(sI),function()
function nshds_w(evPP,cA,sI,pW)
s("nshds - "..tostring(sI),function()
chauths(cA,evPP,pW)
luash({["sI"]=sI})
while true do
@ -19,8 +19,8 @@ s("nshd - "..tostring(sI),function()
end,{["sI"]=sI})
end
function nshd(P,pW)
s("nshd",function()
function nshds(P,pW)
s("nshds",function()
local Cc=1
while true do
if ev[1] == "net_msg" and ev[3] == P then
@ -28,8 +28,8 @@ function nshd(P,pW)
nnID="nsh-"..tostring(Cc)
Cc=Cc+1
ns(ev[2],P,nnID)
nshd_w(nnID,ev[2],nnID,pW)
print("[nshd]Spawned "..nnID.." for "..tostring(ev[2]))
nshds_w(nnID,ev[2],nnID,pW)
print("[nshds]Spawned "..nnID.." for "..tostring(ev[2]))
end
end
C.yield()