]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blob - invalidatebanssethost.patch
killalwaysshowvictimuip: made consistent with local victim, show 'nick[user@ip]'...
[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 4dafbe6a4b4e ircd/s_user.c
4 --- a/ircd/s_user.c Tue Mar 23 22:17:47 2010 +0100
5 +++ b/ircd/s_user.c Tue Mar 23 22:21:27 2010 +0100
6 @@ -1152,6 +1152,10 @@
7 * and set the modes, if any
8 */
9 for (chan = cli_user(cptr)->channel; chan; chan = chan->next_channel) {
10 +
11 + /* Invalidate bans against the user so we check them again */
12 + ClearBanValid(chan);
13 +
14 if (IsZombie(chan))
15 continue;
16 /* If this channel has delayed joins and the user has no modes, just set