]> jfr.im git - irc/quakenet/snircd-patchqueue.git/blame - operglinenick.patch
whonoidle: hide idle time of users with mode +I in non-HIS setup in WHO
[irc/quakenet/snircd-patchqueue.git] / operglinenick.patch
CommitLineData
a84f177f 1Allow oper to set gline in the form of nick!*@*, but only
2when the nick part contains no wildcards.
3
4diff -r fcfbd0f17eef ircd/gline.c
5--- a/ircd/gline.c Fri Jan 23 00:14:32 2009 +0100
6+++ b/ircd/gline.c Fri Jan 23 00:25:24 2009 +0100
7@@ -530,7 +530,8 @@
8 if (sizeof(uhmask) <
9 ircd_snprintf(0, uhmask, sizeof(uhmask), "%s@%s", user, host))
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)