]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - opernowildbadchan.patch
Remove topic_reveal.patch. This has been fixed in IRCU and ircu patch is correct...
[irc/quakenet/snircd-patchqueue.git] / opernowildbadchan.patch
CommitLineData
0c63b280 1Disallow wildcards in badchan set by local oper, and for local badchan by remote oper.
27347c8d 2
6fe1b135
P
3diff -r 6349c8b21898 ircd/gline.c
4--- a/ircd/gline.c Sat Jul 20 15:02:42 2013 +0100
5+++ b/ircd/gline.c Sat Jul 20 15:04:36 2013 +0100
6@@ -506,6 +506,13 @@
7 if (strlen(userhost+1) >= CHANNELLEN + 6)
8 return send_reply(sptr, ERR_LONGMASK);
9
27347c8d 10+ /* disallow wildcards in BADCHANs set by my oper
11+ * and in local BADCHANs set by remote oper
12+ */
6fe1b135 13+ if ((MyUser(sptr) || (IsUser(sptr) && flags & GLINE_LOCAL)) &&
27347c8d 14+ string_has_wildcards(userhost))
15+ return send_reply(sptr, ERR_MASKTOOWIDE, userhost);
6fe1b135 16+
27347c8d 17 flags |= GLINE_BADCHAN;
18 user = userhost;
6fe1b135 19 host = NULL;