1 invalidate bans when the user sets +h or -h so they are checked again
3 diff -r 7223692af752 ircd/s_user.c
4 --- a/ircd/s_user.c Thu Mar 18 12:14:01 2010 +0100
5 +++ b/ircd/s_user.c Thu Mar 18 12:35:00 2010 +0100
6 @@ -1173,12 +1173,15 @@
12 * Go through all channels the client was on, rejoin him
13 * and set the modes, if any
15 for (chan = cli_user(cptr)->channel; chan; chan = chan->next_channel) {
17 + /* Invalidate bans against the user so we check them again */
18 + ClearBanValid(chan);
22 /* If this channel has delayed joins and the user has no modes, just set