diff --git a/exec/load/chateng.js b/exec/load/chateng.js index 16af43354b1644b50db7e69234f003243f3e6f88..2fcee5e0d79a238d3fdbc571b918cda2f7464678 100644 --- a/exec/load/chateng.js +++ b/exec/load/chateng.js @@ -17,7 +17,7 @@ For more advanced chatting, see ChatEngine this.Init() method */ -function Chat(Engine) +function Chat(Engine,key) { if(this.fullscreen) console.clear(); else @@ -27,8 +27,9 @@ function Chat(Engine) } while(1) { - var key=console.inkey(K_NOCRLF|K_NOSPIN|K_NOECHO,25); + if(!key) key=console.inkey(K_NOCRLF|K_NOSPIN|K_NOECHO,5); if(!Engine.ProcessKey(key)) break; + key=""; } } //*************MAIN ENGINE************* @@ -278,11 +279,11 @@ function ChatEngine(root,name,log_) Log("Error: Unknown"); break; } - exit(0); } console.ctrlkey_passthru=oldpass; bbs.sys_status&=~SS_MOFF; bbs.sys_status&=~SS_PAUSEOFF; + exit(0); } }