From bcbc6bd9e19ebb63f77cb989797cc1ac62028c3f Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 13 Dec 2015 11:25:15 -0600 Subject: [PATCH] channel: actually store the last checked client pointer --- src/channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/channel.c b/src/channel.c index 3200ca18..180a4507 100644 --- a/src/channel.c +++ b/src/channel.c @@ -677,6 +677,7 @@ is_banned(struct Channel *chptr, struct Client *who, struct membership *msptr, chptr->last_checked_ts > chptr->bants) return chptr->last_checked_result; + chptr->last_checked_client = who; chptr->last_checked_type = CHFL_BAN; chptr->last_checked_result = is_banned_list(chptr, &chptr->banlist, who, msptr, s, s2, forward); chptr->last_checked_ts = rb_current_time(); @@ -701,6 +702,7 @@ is_quieted(struct Channel *chptr, struct Client *who, struct membership *msptr, chptr->last_checked_ts > chptr->bants) return chptr->last_checked_result; + chptr->last_checked_client = who; chptr->last_checked_type = CHFL_QUIET; chptr->last_checked_result = is_banned_list(chptr, &chptr->quietlist, who, msptr, s, s2, NULL); chptr->last_checked_ts = rb_current_time();