about summary refs log tree commit diff
path: root/Src/cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/cond.c')
-rw-r--r--Src/cond.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Src/cond.c b/Src/cond.c
index 6e9b55806..3807409e3 100644
--- a/Src/cond.c
+++ b/Src/cond.c
@@ -532,6 +532,17 @@ cond_val(char **args, int num)
 }
 
 /**/
+mod_export int
+cond_match(char **args, int num, char *str)
+{
+    char *s = args[num];
+
+    singsub(&s);
+
+    return matchpat(str, s);
+}
+
+/**/
 static void
 tracemodcond(char *name, char **args, int inf)
 {