diff options
Diffstat (limited to 'pttbbs/innbbsd/antisplam.h')
-rw-r--r-- | pttbbs/innbbsd/antisplam.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pttbbs/innbbsd/antisplam.h b/pttbbs/innbbsd/antisplam.h deleted file mode 100644 index 0832533f..00000000 --- a/pttbbs/innbbsd/antisplam.h +++ /dev/null @@ -1,25 +0,0 @@ -#include "bbs.h" -#define char_lower(c) ((c >= 'A' && c <= 'Z') ? c|32 : c) - -#if 0 /* string.h , libc */ -int -strcasestr(str, tag) - char *str, *tag; /* tag : lower-case string */ -{ - char buf[256]; - - str_lower(buf, str); - return (int)strstr(buf, tag); -} -#endif - -int -bad_subject(char *subject) -{ - char *badkey[] = {"µL½X", "avcd", "mp3", NULL}; - int i; - for (i = 0; badkey[i]; i++) - if (strcasestr(subject, badkey[i])) - return 1; - return 0; -} |