]> jfr.im git - irc/DALnet/bahamut.git/commitdiff
Change stripall() function to strip Hebrew characters as well
authorKobi Shmueli <redacted>
Mon, 22 Oct 2018 09:37:17 +0000 (12:37 +0300)
committerKobi Shmueli <redacted>
Wed, 24 Oct 2018 05:07:00 +0000 (08:07 +0300)
src/spamfilter.c

index 1fee77bc5ed1a026260a318f91b90f2810f83ef1..ab112189516ae4e7a9023065e60b222b293fb6d5 100644 (file)
@@ -426,7 +426,7 @@ void stripcolors(char new[512], char *org)
 /* Strip all "special" chars */
 void stripall(char new[512], char *org)
 {
-#define fstripall(c) ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || IsDigit(c) || c == '-' || c == '/' || c == '.' || c== '$' || c == '(' || (c >= '\224' && c <= '\250')) /* to strip everything ;) */
+#define fstripall(c) ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || IsDigit(c) || c == '-' || c == '/' || c == '.' || c== '$' || c == '(') /* to strip everything ;) */
     int len = 0;
 
     for(; (*org && len<512); org++)