src/dg_triggers.c
int word_check(char *str, char *wordlist)
{
    char words[MAX_INPUT_LENGTH], phrase[MAX_INPUT_LENGTH], *s;

    if (*wordlist=='*') return 1;

    strcpy(words, wordlist);
    
    for (s = one_phrase(words, phrase); *phrase; s = one_phrase(s, phrase))
	if (is_substring(phrase, str))
	    return 1;

    return 0;
}
/*
 * return 1 if str contains a word or phrase from wordlist.
 * phrases are in double quotes (").
 * if wrdlist is NULL, then return 1, if str is NULL, return 0.
 */
return 1 if str contains a word or phrase from wordlist.
phrases are in double quotes (").
if wrdlist is NULL, then return 1, if str is NULL, return 0.
return 1 if str contains a word or phrase from wordlist . phrases are in double quotes ( " ) . if wrdlist is NULL then return 1 if str is NULL return 0 .
int word_check(char *str, char *wordlist)
{
    char words[MAX_INPUT_LENGTH], phrase[MAX_INPUT_LENGTH], *s;
    if (*wordlist=='*') return 1;
    strcpy(words, wordlist);
    for (s = one_phrase(words, phrase); *phrase; s = one_phrase(s, phrase))
	if (is_substring(phrase, str))
	    return 1;
    return 0;
}
int word_check ( char * str , char * wordlist ) { char words [ MAX_INPUT_LENGTH ] , phrase [ MAX_INPUT_LENGTH ] , * s ; if ( * wordlist == ' ' ) return 1 ; strcpy ( words , wordlist ) ; for ( s = one_phrase ( words , phrase ) ; * phrase ; s = one_phrase ( s , phrase ) ) if ( is_substring ( phrase , str ) ) return 1 ; return 0 ; }
return 1 if str contains a word or phrase from wordlist.
return 1 if str contains a word or phrase from wordlist .