summaryrefslogtreecommitdiff
path: root/filter/test.conf2
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-06-01 08:32:49 +0000
committerPavel Machek <pavel@ucw.cz>2000-06-01 08:32:49 +0000
commit1895e81e0532f732f501036402bbdd1825885cfd (patch)
tree8f2c9e7b8bfb5b1b2e76657289a91af0146c9dd0 /filter/test.conf2
parent42542c56c23174bfaefb1b949b90ed72afbea8fd (diff)
Allow matching on enums:
if !(scope ~ [ SCOPE_HOST, SCOPE_SITE ]) then { print "Failed in test"; quitbird; }
Diffstat (limited to 'filter/test.conf2')
-rw-r--r--filter/test.conf24
1 files changed, 4 insertions, 0 deletions
diff --git a/filter/test.conf2 b/filter/test.conf2
index 055e49a5..60bdd965 100644
--- a/filter/test.conf2
+++ b/filter/test.conf2
@@ -36,6 +36,10 @@ protocol static {
print scope;
scope = SCOPE_HOST;
print scope;
+ if !(scope ~ [ SCOPE_HOST, SCOPE_SITE ]) then {
+ print "Failed in test";
+ quitbird;
+ }
preference = 15;
print preference;