Clan Code Snippet fixer upper

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


I used the clan code snippet by Mehdi Kaddeche (sorry if I've mispelled it)
as a base for mine, and I thought I'd post a re-work of the is_playing()
function for those of you who use the clan code he wrote.  As it is, it
won't recognize players with capital letters in the middle of their names
and it will also ruin the player table names.  Here's the new one

struct char_data *is_playing(char *vict_name)
{
  extern struct descriptor_data *descriptor_list;
  struct descriptor_data *i, *next_i;

  for (i = descriptor_list; i; i = next_i) {
    next_i = i->next;
    if(i->connected == CON_PLAYING && !str_cmp(i->character->player.name,
vict_name))
      return i->character;
     }
  return NULL;
}


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