Re: do_who problem

From: Tony Robbins [Kupek] (tonyr@NWPACLINK.COM)
Date: 09/19/98


On Sat, 19 Sep 1998, Phillip A. Ames wrote:

> 32000H/32000H 32000M/32000M 32000V/32000V> who
> [Engineer aboard the White Star]
>  [Satai of Grey Council] [Entil'Za aboard the White Star] (cloaked)
>  Listing of the Gods
>  -=-=-=-=-=-=-=-=-=-=-
> [     Q     ] Gowron the Implementor (AFK)
...
>           sprintf(buf, "%s [%s of %s]",
>                   buf,
>         clan[clan_num].rank_name[GET_CLAN_RANK(tch) -1],
>                 clan[clan_num].name);
...
If I recall correctly, this is dak's do_who, which could be your problem
in that you're using the string buf rather than Imm_buf and/or Mort_buf.

If you're appending to a mortal, I believe that you should be doing
sprintf(Mort_buf, "%s [%s of %s]", Mort_buf, clanstuff, clanstuff);
or more appropriately
sprintf(Mort_buf + strlen(Mort_buf), " [%s of %s]", clanstuff, clanstuff);

(In both cases, clanstuff should be changed to the appropriate string.)

Looking at my code (which is dak's do_who), this should fix your problem.
If not, let me know.  :P

-B.


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