I'm using Dominic's ignore code (with a couple modifications) and I noticed the following in the code, and it didn't look right. It's supposed to remove a name from the ignore list of a character. If it isn't right, could someone offer tips as to why? I would appreciate it :p Thanks y'all!

/* Snip */
for (pos = 0; pos < MAX_IGNORE; pos++)
   {
        if (ch->pcdata->ignored[pos] == NULL)
            break;

        if (found)
        {
            ch->pcdata->ignored[pos-1]            = rch->pcdata->ignored[pos];
            ch->pcdata->ignored[pos]              = NULL;
            continue;
        }

        if(!strcmp(arg, ch->pcdata->ignored[pos]))
        {
            send_to_char("They are no longer ignored.\n\r",ch);
            free_string(ch->pcdata->ignored[pos]);
            ch->pcdata->ignored[pos] = NULL;
            found = TRUE;
        }
   }

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


Reply via email to