ircd: Channel.bants is not a serial but a timestamp.

Previously, the IRCd would increment bants instead of resyncing the timestamp, causing the potential of
false negatives from the bancache system.
This commit is contained in:
William Pitcock 2016-04-29 18:59:32 -05:00 committed by Aaron Jones
parent bf9e0a6ed5
commit 1d2ba176ea
No known key found for this signature in database
GPG key ID: 6E854C0FAAD4CEA4

View file

@ -295,7 +295,7 @@ add_id(struct Client *source_p, struct Channel *chptr, const char *banid, const
/* invalidate the can_send() cache */
if(mode_type == CHFL_BAN || mode_type == CHFL_QUIET || mode_type == CHFL_EXCEPTION)
chptr->bants++;
chptr->bants = rb_current_time();
return 1;
}
@ -325,7 +325,7 @@ del_id(struct Channel *chptr, const char *banid, rb_dlink_list * list, long mode
/* invalidate the can_send() cache */
if(mode_type == CHFL_BAN || mode_type == CHFL_QUIET || mode_type == CHFL_EXCEPTION)
chptr->bants++;
chptr->bants = rb_current_time();
return banptr;
}