bool is_note_to( CHAR_DATA *ch, NOTE_DATA *pnote ) { if ( !str_cmp( ch->name, pnote->sender ) ) return TRUE; if ( is_exact_name( "all", pnote->to_list ) ) return TRUE; if ( IS_IMMORTAL(ch) && is_exact_name( "immortal", pnote->to_list ) ) return TRUE; if (is_exact_name( ch->name, pnote->to_list ) ) return TRUE; return FALSE; }
bool is_note_to ( Creature *ch, NOTE_DATA *pnote ) { if ( SameString ( ch->name, pnote->sender ) ) { return TRUE; } if ( is_exact_name ( "all", pnote->to_list ) ) { return TRUE; } if ( IsStaff ( ch ) && is_exact_name ( "immortal", pnote->to_list ) ) { return TRUE; } if ( ch->clan && is_exact_name ( ( char * ) clan_table[ch->clan].name, pnote->to_list ) ) { return TRUE; } if ( is_exact_name ( ch->name, pnote->to_list ) ) { return TRUE; } return FALSE; }
bool check_illegal(char *name) { ILLEGAL_DATA *p; for (p = illegal_first; p; p = p->next) { if (p->mode == '#') { if (!str_cmp(name, p->word) || is_name(name, p->word) || is_exact_name(name, p->word)) return TRUE; } else if (p->mode == '@') { if (!str_prefix(p->word, name)) return TRUE; } else if (p->mode == '$') { if (!str_cmp(name, p->word) || is_exact_name(name, p->word) || is_name(name, p->word) || !str_infix(name, p->word) || !str_prefix(p->word, name) || strstr(name, p->word)) return TRUE; } } return FALSE; }