Re: NEWBIE: bug in "who"

From: ShadowLord (dkoepke@california.com)
Date: 05/17/96


>     } else {
>       num_can_see++;
>       sprintf(buf, "%s[%2d %2d %2d %2d %2d] %s %s", buf,
>             GET_LEVELX(tch, CLASS_MAGIC_USER), GET_LEVELX(tch, CLASS_CLERIC),
>             GET_LEVELX(tch, CLASS_THIEF), GET_LEVELX(tch, CLASS_WARRIOR),
>             GET_LEVELX(tch, CLASS_BARD), GET_NAME(tch),
>             GET_TITLE(tch));

	Well, duh...  What do you expect to happen when you append "buf" to 
it and then send_to_char it?  The first pass buf is normal, the second 
time it contains the first player in who plus what you just added, the 
third time all previous players plus the one you just added it.  Perhaps 
you should remove "buf" from the parameter list.



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