From 7af951f0bbf4684daaa3899f6eef9e63595463f3 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 19 Jun 2017 13:25:37 +0000 Subject: [PATCH] fixed issues with timing in nshc-auth --- modules/applications/nshc-auth.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/applications/nshc-auth.lua b/modules/applications/nshc-auth.lua index d211117..585bcef 100644 --- a/modules/applications/nshc-auth.lua +++ b/modules/applications/nshc-auth.lua @@ -20,6 +20,7 @@ function nshc_w(evPP,nid,pW) end function nshc(P,nid,pW) + pW=(pW or readln("*")) ns(nid,P,"initnsh") while true do if ev[1] == "net_msg" and ev[2] == nid and ev[3] == P then @@ -27,5 +28,5 @@ function nshc(P,nid,pW) end C.yield() end - nshc_w(ev[4],nid,(pW or readln("*"))) + nshc_w(ev[4],nid,pW) end