Fix default privileges for global opers.
authorMichael Poole <mdpoole@troilus.org>
Wed, 12 Oct 2005 23:52:12 +0000 (23:52 +0000)
committerMichael Poole <mdpoole@troilus.org>
Wed, 12 Oct 2005 23:52:12 +0000 (23:52 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1523 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
doc/example.conf
ircd/client.c

index 07e9a9b69e7d4084698a76eb4338b81e6a33d4a7..8ba397d23b5f39c0eb3a05d6e7eef186bdad29d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-10-12  Michael Poole <mdpoole@troilus.org>
+
+       * doc/example.conf: Update documentation to match this change.
+
+       * ircd/client.c (client_set_privs): Make default global oper
+       privileges match what was in 2.10.11.
+
 2005-10-11  Michael Poole <mdpoole@troilus.org>
 
        * ircd/os_generic.c (os_get_rusage): Make conditional on DEBUGMODE
index 507376c1fe0e78ca28f3e58cf79bfe7317c18f8b..eb002e662b6fa9b7177d6a8af2f098422ee4cdba 100644 (file)
@@ -220,8 +220,10 @@ Class {
  # apass_opmode (can use OPMODE/CLEARMODE on +A and +U keys)
  #
  # For global opers (with propagate = yes or local = no), the default
- # is to grant all of the above privileges EXCEPT apass_opmode.  For
- # local opers, the default is to grant ONLY the following privileges:
+ # is to grant all of the above privileges EXCEPT walk_lchan,
+ # unlimit_query, set, badchan, local_badchan and apass_opmode.
+ # For local opers, the default is to grant ONLY the following
+ # privileges:
  #  chan_limit, mode_lchan, show_invis, show_all_invis, local_kill,
  #  rehash, local_gline, local_jupe, local_opmode, whox, display,
  #  force_local_opmode
index 6aca8db4a761fe8bff7fd5110a35c8cadb4deef3..e3961b43ffac28d51545d7267d57f072532e8727 100644 (file)
@@ -152,6 +152,11 @@ client_set_privs(struct Client *client, struct ConfItem *oper)
   if (!privs_defaults_set)
   {
     memset(&privs_global, -1, sizeof(privs_global));
+    FlagClr(&privs_global, PRIV_WALK_LCHAN);
+    FlagClr(&privs_global, PRIV_UNLIMIT_QUERY);
+    FlagClr(&privs_global, PRIV_SET);
+    FlagClr(&privs_global, PRIV_BADCHAN);
+    FlagClr(&privs_global, PRIV_LOCAL_BADCHAN);
     FlagClr(&privs_global, PRIV_APASS_OPMODE);
 
     memset(&privs_local, 0, sizeof(privs_local));