Problem in stat file char

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 12/31/97


     it displays the present date instead of the real last login of the
     char being statted.

     ok... the fix:
     act.wizard.c:ACMD(do_stat)


        else if (is_abbrev(buf1, "file"))
           {
           if (!*buf2)
         {
         send_to_char("Stats on which player?\r\n", ch);
         }
           else
         {
         CREATE(victim, struct char_data, 1);
         clear_char(victim);
         if (load_char(buf2, &tmp_store) > -1)
            {
            store_to_char(&tmp_store, victim);
     +       victim->player.time.logon=tmp_store.last_logon;
            if (GET_LEVEL(victim) > GET_LEVEL(ch))
               send_to_char("Sorry, you can't do that.\r\n", ch);
            else
               do_stat_character(ch, victim);
            free_char(victim);
            }
         else
            {
            send_to_char("There is no such player.\r\n", ch);
            free(victim);
            }
         }


     +------------------------------------------------------------+
     | 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