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:
parent
bf9e0a6ed5
commit
1d2ba176ea
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue