Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2005-10-12 23:50:14 UTC
Modified files:
Tag: u2_10_12_branch
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.710.2.11 ircu2.10/ChangeLog:1.710.2.12
--- ircu2.10/ChangeLog:1.710.2.11 Tue Oct 11 18:48:33 2005
+++ ircu2.10/ChangeLog Wed Oct 12 16:50:03 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-11 Michael Poole <[EMAIL PROTECTED]>
* ircd/os_generic.c (os_get_rusage): Make conditional on DEBUGMODE
Index: ircu2.10/doc/example.conf
diff -u ircu2.10/doc/example.conf:1.61 ircu2.10/doc/example.conf:1.61.2.1
--- ircu2.10/doc/example.conf:1.61 Thu Sep 22 13:42:21 2005
+++ ircu2.10/doc/example.conf Wed Oct 12 16:50:03 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.31.2.1
--- ircu2.10/ircd/client.c:1.31 Mon May 30 09:51:05 2005
+++ ircu2.10/ircd/client.c Wed Oct 12 16:50:04 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.31.2.1 2005/10/12 23:50:04 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