From 3f1ff66da4a07a9b9200d6de2a7ab9ee68354b0e Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Fri, 5 Sep 2008 01:18:11 +0000 Subject: [PATCH] moved communication cycle inside key processing function to simplify use and implementation of chat module --- exec/load/chateng.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/load/chateng.js b/exec/load/chateng.js index 20b113acb1..9affa6d202 100644 --- a/exec/load/chateng.js +++ b/exec/load/chateng.js @@ -21,7 +21,6 @@ function Chat(Engine) { while(1) { - Engine.Cycle(); var key=console.inkey(K_NOCRLF|K_NOSPIN|K_NOECHO,25); if(!Engine.ProcessKey(key)) return; } @@ -92,6 +91,7 @@ function ChatEngine(root,name,log_) } this.ProcessKey=function(key) { + this.Cycle(); switch(key.toUpperCase()) { case 'Q': -- GitLab