Re: [Circle] CODE: WHOIS command

From: Ron Hensley (ron@peace.dmv.com)
Date: 08/06/96


You do realize this code prints info about the INOKER and not the victim?
*laugh*


> ----- act.informative.c ----
> ACMD(do_whois)
> {
>   struct char_data *victim = 0;
>   struct char_file_u tmp_store;
> 
>   skip_spaces(&argument);
> 
>   if (!*argument) {
>       send_to_char("Do a WhoIS on which player?\r\n", ch);
>     } else {
>       CREATE(victim, struct char_data, 1);
>       clear_char(victim);
>       if (load_char(argument, &tmp_store) > -1) {
>         store_to_char(&tmp_store, victim);
>         sprintf(buf, "%sLevel %d %s\r\n", buf, GET_LEVEL(ch), 
> 		class_abbrevs[(int) GET_CLASS(ch)]);
/* should be */
!         sprintf(buf, "%sLevel %d %s\r\n", buf, GET_LEVEL(victim), 
! 		class_abbrevs[(int) GET_CLASS(victim)]);


    *******************************************************************
    *   Ron Hensley                     ron@dmv.com                   *
    *   Junior Systems Administrator    http://www.dmv.com/~ron       *
    *   DelMarVa OnLine                 749-1111 Ext. 403             *
    *******************************************************************

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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