[mw-devel] MW3 r1082 - trunk/src

arthur at sucs.org arthur at sucs.org
Fri Apr 3 13:20:21 BST 2009


Author: arthur
Date: 2009-04-03 13:20:21 +0100 (Fri, 03 Apr 2009)
New Revision: 1082

Modified:
   trunk/src/log.c
Log:
extend the uri keywords further


Modified: trunk/src/log.c
===================================================================
--- trunk/src/log.c	2009-04-03 11:36:42 UTC (rev 1081)
+++ trunk/src/log.c	2009-04-03 12:20:21 UTC (rev 1082)
@@ -75,13 +75,18 @@
 	{"^https://", 		REG_ICASE, NULL, URL,    0},
 	{"^www\\.", 		REG_ICASE, NULL, URL,    0},
 	{"^[[:alnum:]_.-]+\\.(com|org|net|gov|(co|org|net|gov)\\.uk)", 	REG_ICASE|REG_EXTENDED, NULL, URL,    0},
-	{"nsfw", 		REG_ICASE, NULL, FLAG,   URLFLAG_NSFW},
-	{"^-anon$", 		REG_ICASE, NULL, FLAG,   URLFLAG_ANON},
-	{"^-coward$", 		REG_ICASE, NULL, FLAG,   URLFLAG_ANON},
-	{"^-sucs$", 		REG_ICASE, NULL, FLAG,   URLFLAG_SUCS},
-	{"^-member", 		REG_ICASE, NULL, FLAG,   URLFLAG_SUCS},
+	{"[+-]nsfw", 		REG_ICASE, NULL, FLAG,   URLFLAG_NSFW},
+	{"(nsfw)", 		REG_ICASE, NULL, FLAG,   URLFLAG_NSFW},
+	{"^[+-]anon$", 		REG_ICASE, NULL, FLAG,   URLFLAG_ANON},
+	{"^(anon)$", 		REG_ICASE, NULL, FLAG,   URLFLAG_ANON},
+	{"^[+-]coward$", 	REG_ICASE, NULL, FLAG,   URLFLAG_ANON},
+	{"^(coward)$", 		REG_ICASE, NULL, FLAG,   URLFLAG_ANON},
+	{"^[+-]sucs$", 		REG_ICASE, NULL, FLAG,   URLFLAG_SUCS},
+	{"^(sucs)$", 		REG_ICASE, NULL, FLAG,   URLFLAG_SUCS},
+	{"^[+-]member",		REG_ICASE, NULL, FLAG,   URLFLAG_SUCS},
 	{"^-log", 		REG_ICASE, NULL, NOLOG, 0},
 	{"^(-log)$", 		REG_ICASE, NULL, NOLOG, 0},
+	{"^(nolog)$", 		REG_ICASE, NULL, NOLOG, 0},
 	/* section for hashtags, exclude C preprocessor directives */
 	{"^#include$", 		REG_ICASE, NULL, IGNORE, 0},
 	{"^#define$", 		REG_ICASE, NULL, IGNORE, 0},




More information about the mw-devel mailing list