channel: actually store the last checked client pointer

This commit is contained in:
William Pitcock 2015-12-13 11:25:15 -06:00
parent 2749c37c43
commit bcbc6bd9e1

View file

@ -677,6 +677,7 @@ is_banned(struct Channel *chptr, struct Client *who, struct membership *msptr,
chptr->last_checked_ts > chptr->bants) chptr->last_checked_ts > chptr->bants)
return chptr->last_checked_result; return chptr->last_checked_result;
chptr->last_checked_client = who;
chptr->last_checked_type = CHFL_BAN; chptr->last_checked_type = CHFL_BAN;
chptr->last_checked_result = is_banned_list(chptr, &chptr->banlist, who, msptr, s, s2, forward); chptr->last_checked_result = is_banned_list(chptr, &chptr->banlist, who, msptr, s, s2, forward);
chptr->last_checked_ts = rb_current_time(); 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) chptr->last_checked_ts > chptr->bants)
return chptr->last_checked_result; return chptr->last_checked_result;
chptr->last_checked_client = who;
chptr->last_checked_type = CHFL_QUIET; chptr->last_checked_type = CHFL_QUIET;
chptr->last_checked_result = is_banned_list(chptr, &chptr->quietlist, who, msptr, s, s2, NULL); chptr->last_checked_result = is_banned_list(chptr, &chptr->quietlist, who, msptr, s, s2, NULL);
chptr->last_checked_ts = rb_current_time(); chptr->last_checked_ts = rb_current_time();