Skip to content
Snippets Groups Projects
Commit 344e0144 authored by deuce's avatar deuce
Browse files

disable auto_terminate.

exit if js.terminated is true.
parent c0ab7636
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,9 @@
// $Id$
// disable auto-termination.
js.auto_terminate=false;
const REVISION = "$Revision$".split(' ')[1];
const SPACEx80 = " ";
const MAX_HIST = 50;
......@@ -128,6 +131,14 @@ while(!quit) {
clean_exit();
}
if(js.terminated) {
sock.send("QUIT :Client terminated.\r\n");
quit=1;
sock.close();
bbs.hangup();
clean_exit();
}
ready=socket_select(socks, 1);
for(thissock in ready) {
if(sock.poll(.01))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment