Re: Code question re: AFK

From: Chuck Reed (master@I-55.COM)
Date: 08/30/98


>else if (is_tell_ok(ch, vict))
>        if (PRF_FLAGGED(vict, PRF_AFK)) {
>        sprintf(buf, %s is AFK.\r\n, GET_NAME(vict));
>        send_to_char(buf, ch);
>        sprintf(buf, "Message: %s\r\n", GET_AFK(vict));
>        send_to_char(buf, ch);
>        }
>perform_tell(ch, vict, buf2);

change it to

else if (is_tell_ok(ch, vict))
        if (PRF_FLAGGED(vict, PRF_AFK)) {
        sprintf(buf, %s is AFK.\r\n, GET_NAME(vict));
        send_to_char(buf, ch);
        sprintf(buf, "Message: %s\r\n", GET_AFK(vict));
        send_to_char(buf, ch);
        }
        else
          perform_tell(ch, vict, buf2);


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