do_dc bug - addition

From: Andrey Fidrya (andrey@alex-ua.com)
Date: 06/28/99


(addition to my 1st do_dc bug report)
The correct piece of code for do_dc() is:

===
/* Is it possible to catch player being disconnected? Imho yes. */
if (STATE(d) == CON_DISCONNECT || STATE(d) == CON_CLOSE) {
  send_to_char("Enough for him... ;-)\r\n", ch);
  return;
} else if (STATE(d) == CON_PLAYING)
  STATE(d) = CON_DISCONNECT;
else
  STATE(d) = CON_CLOSE;
===

Zmey // 3MoonsWorld (rmud.net.ru:4000)


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



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