summaryrefslogtreecommitdiff
path: root/imp.ha
diff options
context:
space:
mode:
authorJulian Hurst <julian.hurst92@gmail.com>2022-06-23 21:53:33 +0200
committerJulian Hurst <julian.hurst92@gmail.com>2022-06-23 21:53:33 +0200
commit9fb207cc81aafd4c3ef6fa3fe1c265a05f46c24e (patch)
tree43edf0014e0c8101438128288e492e585a21ca7f /imp.ha
parent881af93c63b4736d0f1f1ab543c383532caaf3ae (diff)
downloadimp-9fb207cc81aafd4c3ef6fa3fe1c265a05f46c24e.tar.gz
Fix group filter not matching subgroups
Diffstat (limited to 'imp.ha')
-rw-r--r--imp.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/imp.ha b/imp.ha
index d9ed16e..378fe73 100644
--- a/imp.ha
+++ b/imp.ha
@@ -173,7 +173,7 @@ fn isfiltered(acc: account, f: filter) bool = {
};
};
for (let i = 0z; i < len(f.groups); i += 1) {
- if (strings::compare(f.groups[i], acc.group) == 0) {
+ if (strings::hasprefix(acc.group, f.groups[i])) {
return true;
};
};