]> jfr.im git - irc/quakenet/snircd-patchqueue.git/commitdiff
invalidatebanssethost: invalidate bans when user sets +h or -h so they are checked...
authorwiebe <redacted>
Thu, 18 Mar 2010 11:38:47 +0000 (12:38 +0100)
committerwiebe <redacted>
Thu, 18 Mar 2010 11:38:47 +0000 (12:38 +0100)
invalidatebanssethost.patch [new file with mode: 0644]
series

diff --git a/invalidatebanssethost.patch b/invalidatebanssethost.patch
new file mode 100644 (file)
index 0000000..39d795f
--- /dev/null
@@ -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 d94e122e26f8e7f3e2cad0272966d109c09bb42b..0960d6645238bf827ec153f3e4b098396ed1d4da 100644 (file)
--- 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