Re: [CODE] [NEWBIE] do_last (NOHOST)

From: Sammy (samedi@ticnet.com)
Date: 03/03/01


On Fri, 2 Mar 2001 20:41:54 -0600, flawed wrote:

>Awhile ago someone asked this question but there was never any answer back
>to it. For some reason (Im betting its cause of ascii) the do_last command
>will only show (NOHOST) when used to find the last logon of a player. Has
>anyone encountered this, and if so, what was changed to make it work
>correctly?

Sorry I still don't have an answer, as I haven't looked into it yet.
My official answer, though, is yes, it is an ascii pfiles problem that
I'm aware of, and it will most likely be fixed in the next release.
That may be within the next few weeks.

>  sprintf(buf, "[%5ld] [%2d %s] %-12s : %-18s : %-20s\r\n",
>          GET_IDNUM(vict), (int) GET_LEVEL(vict),
>          class_abbrevs[(int) GET_CLASS(vict)], GET_NAME(vict),
>          vict->player_specials->host && *vict->player_specials->host
>          ? vict->player_specials->host : "(NOHOST)",
>          ctime(&vict->player.time.logon));
>  send_to_char(buf, ch);

This code is ok.  The problem is that there is no host loaded, which
either means there's something broken in the load_char function or it
is not being saved correctly.

Sam

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST