1 Disallow wildcards in badchan set by local oper, and for local badchan by remote oper.
3 diff -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
7 if (strlen(userhost+1) >= CHANNELLEN + 6)
8 return send_reply(sptr, ERR_LONGMASK);
10 + /* disallow wildcards in BADCHANs set by my oper
11 + * and in local BADCHANs set by remote oper
13 + if ((MyUser(sptr) || (IsUser(sptr) && flags & GLINE_LOCAL)) &&
14 + string_has_wildcards(userhost))
15 + return send_reply(sptr, ERR_MASKTOOWIDE, userhost);
17 flags |= GLINE_BADCHAN;