From: wiebe Date: Wed, 17 Mar 2010 12:49:09 +0000 (+0100) Subject: removed privlocalchan.patch - can deal with this in the quakenet.conf X-Git-Url: https://jfr.im/git/irc/quakenet/snircd-patchqueue.git/commitdiff_plain/843a9d06088135ac8dad4b38f9710b00ee80a4e5 removed privlocalchan.patch - can deal with this in the quakenet.conf --- diff --git a/privlocalchan.patch b/privlocalchan.patch deleted file mode 100644 index cff5cc8..0000000 --- a/privlocalchan.patch +++ /dev/null @@ -1,25 +0,0 @@ -Do not list privileges in /PRIVS related to local channels when local channels are disabled -by feature LOCAL_CHANNELS. - -diff -r 081319e0fbcc ircd/client.c ---- a/ircd/client.c Thu Jan 22 16:29:29 2009 +0100 -+++ b/ircd/client.c Thu Jan 22 17:39:47 2009 +0100 -@@ -264,9 +264,17 @@ - mb = msgq_make(to, rpl_str(RPL_PRIVS), cli_name(&me), cli_name(to), - cli_name(client)); - -- for (i = 0; privtab[i].name; i++) -+ for (i = 0; privtab[i].name; i++) { -+ /* dont report privs related to local channels when local channels are not enabled */ -+ /* TODO: this works.. but does not seem clean, there must be a better way.. */ -+ if ((!feature_bool(FEAT_LOCAL_CHANNELS)) && -+ (privtab[i].priv == PRIV_WALK_LCHAN || privtab[i].priv == PRIV_MODE_LCHAN || -+ privtab[i].priv == PRIV_DEOP_LCHAN || privtab[i].priv == PRIV_LOCAL_OPMODE || -+ privtab[i].priv == PRIV_FORCE_LOCAL_OPMODE)) -+ continue; - if (HasPriv(client, privtab[i].priv)) - msgq_append(0, mb, "%s%s", found1++ ? " " : "", privtab[i].name); -+ } - - send_buffer(to, mb, 0); /* send response */ - msgq_clean(mb); diff --git a/series b/series index 3bbfe75..6e157a3 100644 --- a/series +++ b/series @@ -24,7 +24,6 @@ opername.patch cmdhelp.patch noticepluschan.patch whomatch.patch -privlocalchan.patch burstwhotopic.patch opernowildbadchan.patch operglinenick.patch