]>
Commit | Line | Data |
---|---|---|
1 | invalidate bans when the user sets +h or -h so they are checked again | |
2 | ||
3 | diff -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 | |
17 | diff -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 | |
20 | @@ -1152,6 +1152,10 @@ | |
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 |