ANSI color patch bugfix

From: Rasdan (rasdan@PEAK.ORG)
Date: 11/23/97


Here is a solution to a rather minor bug with the ANSI color patch
created many months ago by Daniel Koepke.

The bug: Players who use auto-triggers to connect to the mud either
after a reboot, after they just plain lose their link, or after a
crash but are not at their computer, and therefore don't close the
client, will get stuck at con_qansi and never time out.

The Fix:

In comm.c, in check_idle_passwords, where you see this line:

if (STATE(d) != CON_PASSWORD && STATE(d) != CON_GET_NAME)

at the end of that, before last ) add:
&& STATE(d) != CON_QANSI.

Simple :)

Rasdan
                                  /   \
        _                 )      ((   ))     (
       (@)               /|\      ))_((     /|\                 _
       |-|`\            / | \    (/\|/\)   / | \               (@)
       | | ------------/--|-voV---\`|'/--Vov-|--\--------------|-|
       |-|                  '^`   (o o)  '^`                   | |
       | |  James C. Thomas Jr.   `\Y/'  Founder of Finality   |-|
       |-|                 rasdan@finality.com                 | |
       | |                  finality.com 4000                  |-|
       |_|_____________________________________________________| |
       (@)       l   /\ /         ( (       \ /\   l         `\|-|
                 l /   V           \ \       V   \ l           (@)
                 l/                _) )_          \I
                                   `\ /'
                                     `


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST