]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - invalidatebanssethost.patch
welcome: use max variable instead of WELCOME_MAX_ENTRIES and make check for inserting...
[irc/quakenet/snircd-patchqueue.git] / invalidatebanssethost.patch
CommitLineData
8af67522 1invalidate bans when the user sets +h or -h so they are checked again
2
b5b1c40f 3diff -r 9d816a3c603b ircd/m_sethost.c
4--- a/ircd/m_sethost.c Thu Mar 25 12:27:05 2010 +0100
5+++ b/ircd/m_sethost.c Thu Mar 25 12:34:09 2010 +0100
6@@ -229,6 +229,10 @@
7 * and set the modes, if any
8 */
9 for (chan = cli_user(target)->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
17diff -r 9d816a3c603b ircd/s_user.c
18--- a/ircd/s_user.c Thu Mar 25 12:27:05 2010 +0100
19+++ b/ircd/s_user.c Thu Mar 25 12:34:09 2010 +0100
c4b11cd3 20@@ -1152,6 +1152,10 @@
8af67522 21 * and set the modes, if any
22 */
23 for (chan = cli_user(cptr)->channel; chan; chan = chan->next_channel) {
24+
25+ /* Invalidate bans against the user so we check them again */
26+ ClearBanValid(chan);
27+
28 if (IsZombie(chan))
29 continue;
30 /* If this channel has delayed joins and the user has no modes, just set