]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - invalidatebanssethost.patch
checkoutput: changed (timestamp) output to [timestamp]
[irc/quakenet/snircd-patchqueue.git] / invalidatebanssethost.patch
1 invalidate bans when the user sets +h or -h so they are checked again
2
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 @@
7 }
8 }
9 #endif
10 -
11 /*
12 * Go through all channels the client was on, rejoin him
13 * and set the modes, if any
14 */
15 for (chan = cli_user(cptr)->channel; chan; chan = chan->next_channel) {
16 +
17 + /* Invalidate bans against the user so we check them again */
18 + ClearBanValid(chan);
19 +
20 if (IsZombie(chan))
21 continue;
22 /* If this channel has delayed joins and the user has no modes, just set