From 1e8138afb02d0fe1f910f95cc041e8918d911e83 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 13 Dec 2015 08:17:04 -0600 Subject: [PATCH] channel: actually, use bancache invalidation as the metric for the duplication check any state change which would cause the duplicate check to change would invalidate bancache as a whole anyway --- src/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel.c b/src/channel.c index ac9bacd41..3200ca18f 100644 --- a/src/channel.c +++ b/src/channel.c @@ -674,7 +674,7 @@ is_banned(struct Channel *chptr, struct Client *who, struct membership *msptr, if (chptr->last_checked_client != NULL && who == chptr->last_checked_client && chptr->last_checked_type == CHFL_BAN && - rb_current_time() - chptr->last_checked_ts < 5) + chptr->last_checked_ts > chptr->bants) return chptr->last_checked_result; chptr->last_checked_type = CHFL_BAN; @@ -698,7 +698,7 @@ is_quieted(struct Channel *chptr, struct Client *who, struct membership *msptr, if (chptr->last_checked_client != NULL && who == chptr->last_checked_client && chptr->last_checked_type == CHFL_QUIET && - rb_current_time() - chptr->last_checked_ts < 5) + chptr->last_checked_ts > chptr->bants) return chptr->last_checked_result; chptr->last_checked_type = CHFL_QUIET;