summaryrefslogtreecommitdiffstats
path: root/squark-filter.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-09-07 16:17:58 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-09-07 16:17:58 +0300
commitccdc549cd2540a19f4bff908555aebb2dc3b7bd5 (patch)
tree3433d463e05e9684a4e0b79f2334023e53a0f39f /squark-filter.c
parentdf7ffbb0628ec129af4f11353d7a51afd1f4052c (diff)
downloadsquark-ccdc549cd2540a19f4bff908555aebb2dc3b7bd5.tar.bz2
squark-ccdc549cd2540a19f4bff908555aebb2dc3b7bd5.tar.xz
authdb: separate last access / login time
and tweak the authdb a bit.
Diffstat (limited to 'squark-filter.c')
-rw-r--r--squark-filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/squark-filter.c b/squark-filter.c
index ce2d183..1fa1ec9 100644
--- a/squark-filter.c
+++ b/squark-filter.c
@@ -416,8 +416,8 @@ static void read_input(struct sqdb *db)
if (!auth_ok) {
send_redirect(redirect_login_page, id, url, BLOB_STR("auth"), username);
} else if (((1ULL << category) & entry.p.block_categories) &&
- (now < entry.u.override_time ||
- now > entry.u.override_time + FILTER_OVERRIDE_TIMEOUT ||
+ (now < entry.override_time ||
+ now > entry.override_time + FILTER_OVERRIDE_TIMEOUT ||
((1ULL << category) & entry.p.hard_block_categories))) {
send_redirect(redirect_banned_page, id, url, get_category_name(db, category), username);
} else