From: wiebe Date: Thu, 18 Mar 2010 11:38:47 +0000 (+0100) Subject: invalidatebanssethost: invalidate bans when user sets +h or -h so they are checked... X-Git-Url: https://jfr.im/git/irc/quakenet/snircd-patchqueue.git/commitdiff_plain/8af6752206c20a67bf87ab2a3bf52ed0bdfa8746 invalidatebanssethost: invalidate bans when user sets +h or -h so they are checked again. --- diff --git a/invalidatebanssethost.patch b/invalidatebanssethost.patch new file mode 100644 index 0000000..39d795f --- /dev/null +++ b/invalidatebanssethost.patch @@ -0,0 +1,22 @@ +invalidate bans when the user sets +h or -h so they are checked again + +diff -r 7223692af752 ircd/s_user.c +--- a/ircd/s_user.c Thu Mar 18 12:14:01 2010 +0100 ++++ b/ircd/s_user.c Thu Mar 18 12:35:00 2010 +0100 +@@ -1173,12 +1173,15 @@ + } + } + #endif +- + /* + * Go through all channels the client was on, rejoin him + * and set the modes, if any + */ + for (chan = cli_user(cptr)->channel; chan; chan = chan->next_channel) { ++ ++ /* Invalidate bans against the user so we check them again */ ++ ClearBanValid(chan); ++ + if (IsZombie(chan)) + continue; + /* If this channel has delayed joins and the user has no modes, just set diff --git a/series b/series index d94e122..0960d66 100644 --- a/series +++ b/series @@ -4,6 +4,7 @@ badchanzombie.patch nserverflag.patch minoplevel.patch ischannelservice.patch +invalidatebanssethost.patch commonchansumode.patch who-accountid.patch hiskgline.patch