From: wiebe Date: Thu, 22 Jan 2009 23:31:36 +0000 (+0100) Subject: add operglinenick.patch - allow oper to set glines in form of nick@* gline, but only... X-Git-Url: https://jfr.im/git/irc/quakenet/snircd-patchqueue.git/commitdiff_plain/a84f177f0a3b359ce9e4ef08a500c5b2a0b111df add operglinenick.patch - allow oper to set glines in form of nick@* gline, but only when nick does not contain wildcards --- diff --git a/operglinenick.patch b/operglinenick.patch new file mode 100644 index 0000000..b491791 --- /dev/null +++ b/operglinenick.patch @@ -0,0 +1,16 @@ +Allow oper to set gline in the form of nick!*@*, but only +when the nick part contains no wildcards. + +diff -r fcfbd0f17eef ircd/gline.c +--- a/ircd/gline.c Fri Jan 23 00:14:32 2009 +0100 ++++ b/ircd/gline.c Fri Jan 23 00:25:24 2009 +0100 +@@ -530,7 +530,8 @@ + if (sizeof(uhmask) < + ircd_snprintf(0, uhmask, sizeof(uhmask), "%s@%s", user, host)) + return send_reply(sptr, ERR_LONGMASK); +- else if (MyUser(sptr) || (IsUser(sptr) && flags & GLINE_LOCAL)) { ++ /* when the nick part contains no wildcards, let it through */ ++ else if ((MyUser(sptr) || (IsUser(sptr) && flags & GLINE_LOCAL)) && string_has_wildcards(nick)) { + switch (gline_checkmask(host)) { + case CHECK_OVERRIDABLE: /* oper overrided restriction */ + if (flags & GLINE_OPERFORCE) diff --git a/series b/series index f1d2eef..a1ec3eb 100644 --- a/series +++ b/series @@ -23,4 +23,5 @@ whomatch.patch privlocalchan.patch burstwhotopic.patch opernowildbadchan.patch +operglinenick.patch split.patch