Two line fix for CON_DISCONNECT

From: George (greerga@CIRCLEMUD.ORG)
Date: 03/18/98


Tested the idle out portion and the purge portion.

diff -uprN -x *.o condisstk/act.wizard.c condis/act.wizard.c
--- condisstk/act.wizard.c      Wed Mar 18 21:53:58 1998
+++ condis/act.wizard.c Wed Mar 18 21:38:07 1998
@@ -1122,6 +1122,7 @@ ACMD(do_purge)
        mudlog(buf, BRF, LVL_GOD, TRUE);
        if (vict->desc) {
          STATE(vict->desc) = CON_DISCONNECT;
+         vict->desc->character = NULL;
          vict->desc = NULL;
        }
       }
diff -uprN -x *.o condisstk/limits.c condis/limits.c
--- condisstk/limits.c  Wed Mar 18 21:53:59 1998
+++ condis/limits.c     Wed Mar 18 21:52:35 1998
@@ -361,8 +361,10 @@ void check_idling(struct char_data * ch)
       if (ch->in_room != NOWHERE)
        char_from_room(ch);
       char_to_room(ch, 3);
-      if (ch->desc)
+      if (ch->desc) {
        STATE(ch->desc) = CON_DISCONNECT;
+       ch->desc->character = NULL;
+      }
       ch->desc = NULL;
       if (free_rent)
        Crash_rentsave(ch, 0);

I love pointers. :P

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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/15/00 PST