From 41031d5ad20f65726419cbcac5e60ed45ed93683 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Mon, 19 Jun 2017 13:30:29 +0000 Subject: [PATCH] made a way to break out of the auth loop --- modules/applications/nshc-auth.lua | 2 ++ modules/applications/nshc.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/applications/nshc-auth.lua b/modules/applications/nshc-auth.lua index 585bcef..031cf73 100644 --- a/modules/applications/nshc-auth.lua +++ b/modules/applications/nshc-auth.lua @@ -25,6 +25,8 @@ function nshc(P,nid,pW) while true do if ev[1] == "net_msg" and ev[2] == nid and ev[3] == P then break + elseif ev[1] == "key" and ev[2] == sI and ev[3] == 29 and ev[4] == 27 then + break end C.yield() end diff --git a/modules/applications/nshc.lua b/modules/applications/nshc.lua index b4324be..95ac96b 100644 --- a/modules/applications/nshc.lua +++ b/modules/applications/nshc.lua @@ -23,6 +23,8 @@ function nshc(P,nid) while true do if ev[1] == "net_msg" and ev[2] == nid and ev[3] == P then break + elseif ev[1] == "key" and ev[2] == sI and ev[3] == 29 and ev[4] == 27 then + break end C.yield() end