]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - invalidatebanssethost.patch
cprivmsgerracconly: changed code comment and patch description
[irc/quakenet/snircd-patchqueue.git] / invalidatebanssethost.patch
CommitLineData
8af67522 1invalidate bans when the user sets +h or -h so they are checked again
2
c4b11cd3 3diff -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 @@
8af67522 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