]>
Commit | Line | Data |
---|---|---|
a84f177f | 1 | Allow oper to set gline in the form of nick!*@*, but only |
2 | when the nick part contains no wildcards. | |
3 | ||
769863cd P |
4 | diff -r 3ef25a346a1c ircd/gline.c |
5 | --- a/ircd/gline.c Sat Jul 20 15:42:18 2013 +0100 | |
6 | +++ b/ircd/gline.c Sat Jul 20 15:44:08 2013 +0100 | |
7 | @@ -546,7 +546,8 @@ | |
a84f177f | 8 | if (sizeof(uhmask) < |
769863cd | 9 | ircd_snprintf(0, uhmask, sizeof(uhmask), "%s!%s@%s", nick, user, host)) |
a84f177f | 10 | return send_reply(sptr, ERR_LONGMASK); |
11 | - else if (MyUser(sptr) || (IsUser(sptr) && flags & GLINE_LOCAL)) { | |
12 | + /* when the nick part contains no wildcards, let it through */ | |
13 | + else if ((MyUser(sptr) || (IsUser(sptr) && flags & GLINE_LOCAL)) && string_has_wildcards(nick)) { | |
14 | switch (gline_checkmask(host)) { | |
15 | case CHECK_OVERRIDABLE: /* oper overrided restriction */ | |
16 | if (flags & GLINE_OPERFORCE) |