Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-10-12 23:52:22 UTC

Modified files:
     ChangeLog doc/example.conf ircd/client.c

Log message:

Fix default privileges for global opers.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.724 ircu2.10/ChangeLog:1.725
--- ircu2.10/ChangeLog:1.724    Tue Oct 11 13:32:23 2005
+++ ircu2.10/ChangeLog  Wed Oct 12 16:52:12 2005
@@ -1,3 +1,10 @@
+2005-10-12  Michael Poole <[EMAIL PROTECTED]>
+
+       * 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-12  Perry Lorier <[EMAIL PROTECTED]>
 
        * include/s_stats.h: Add new "Local" only flag to /stats.
Index: ircu2.10/doc/example.conf
diff -u ircu2.10/doc/example.conf:1.61 ircu2.10/doc/example.conf:1.62
--- ircu2.10/doc/example.conf:1.61      Thu Sep 22 13:42:21 2005
+++ ircu2.10/doc/example.conf   Wed Oct 12 16:52:12 2005
@@ -220,8 +220,10 @@
  # 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: ircu2.10/ircd/client.c
diff -u ircu2.10/ircd/client.c:1.31 ircu2.10/ircd/client.c:1.32
--- ircu2.10/ircd/client.c:1.31 Mon May 30 09:51:05 2005
+++ ircu2.10/ircd/client.c      Wed Oct 12 16:52:12 2005
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Implementation of functions for handling local clients.
- * @version $Id: client.c,v 1.31 2005/05/30 16:51:05 entrope Exp $
+ * @version $Id: client.c,v 1.32 2005/10/12 23:52:12 entrope Exp $
  */
 #include "config.h"
 
@@ -152,6 +152,11 @@
   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));
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to