about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTGopher.c
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTGopher.c')
-rw-r--r--WWW/Library/Implementation/HTGopher.c56
1 files changed, 32 insertions, 24 deletions
diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c
index 6eb93764..84fc9e9a 100644
--- a/WWW/Library/Implementation/HTGopher.c
+++ b/WWW/Library/Implementation/HTGopher.c
@@ -1365,18 +1365,22 @@ PRIVATE int generate_cso_report ARGS2(
 				l++;
 				i += 4;
 				buf[i] = '\0';
-			    } else if (strncmp (l, "news:", 5) &&
-				       strncmp (l, "snews://", 8) &&
-				       strncmp (l, "nntp://", 7) &&
-				       strncmp (l, "ftp://", 6) &&
-				       strncmp (l, "file:/", 6) &&
-				       strncmp (l, "finger://", 9) &&
-				       strncmp (l, "http://", 7) &&
-				       strncmp (l, "https://", 8) &&
-				       strncmp (l, "wais://", 7) &&
-				       strncmp (l, "mailto:", 7) &&
-				       strncmp (l, "cso://", 6) &&
-				       strncmp (l, "gopher://", 9)) {
+			    } else if (strncmp(l, "news:", 5) &&
+				       strncmp(l, "snews://", 8) &&
+				       strncmp(l, "nntp://", 7) &&
+				       strncmp(l, "snewspost:", 10) &&
+				       strncmp(l, "snewsreply:", 11) &&
+				       strncmp(l, "newspost:", 9) &&
+				       strncmp(l, "newsreply:", 10) &&
+				       strncmp(l, "ftp://", 6) &&
+				       strncmp(l, "file:/", 6) &&
+				       strncmp(l, "finger://", 9) &&
+				       strncmp(l, "http://", 7) &&
+				       strncmp(l, "https://", 8) &&
+				       strncmp(l, "wais://", 7) &&
+				       strncmp(l, "mailto:", 7) &&
+				       strncmp(l, "cso://", 6) &&
+				       strncmp(l, "gopher://", 9)) {
 			        buf[i++] = *l++;
 				buf[i] = '\0';
 			    } else {
@@ -1416,18 +1420,22 @@ PRIVATE int generate_cso_report ARGS2(
 			    l++;
 			    i += 4;
 			    buf[i] = '\0';
-			} else if (strncmp (l, "news:", 5) &&
-				   strncmp (l, "snews://", 8) &&
-				   strncmp (l, "nntp://", 7) &&
-				   strncmp (l, "ftp://", 6) &&
-				   strncmp (l, "file:/", 6) &&
-				   strncmp (l, "finger://", 9) &&
-				   strncmp (l, "http://", 7) &&
-				   strncmp (l, "https://", 8) &&
-				   strncmp (l, "wais://", 7) &&
-				   strncmp (l, "mailto:", 7) &&
-				   strncmp (l, "cso://", 6) &&
-				   strncmp (l, "gopher://", 9)) {
+			} else if (strncmp(l, "news:", 5) &&
+				   strncmp(l, "snews://", 8) &&
+				   strncmp(l, "nntp://", 7) &&
+				   strncmp(l, "snewspost:", 10) &&
+				   strncmp(l, "snewsreply:", 11) &&
+				   strncmp(l, "newspost:", 9) &&
+				   strncmp(l, "newsreply:", 10) &&
+				   strncmp(l, "ftp://", 6) &&
+				   strncmp(l, "file:/", 6) &&
+				   strncmp(l, "finger://", 9) &&
+				   strncmp(l, "http://", 7) &&
+				   strncmp(l, "https://", 8) &&
+				   strncmp(l, "wais://", 7) &&
+				   strncmp(l, "mailto:", 7) &&
+				   strncmp(l, "cso://", 6) &&
+				   strncmp(l, "gopher://", 9)) {
 			    buf[i++] = *l++;
 			    buf[i] = '\0';
 			} else {