From 95bdbd902d10867d083d992bd30a673c125e686e Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Wed, 12 Oct 2005 23:52:12 +0000 Subject: [PATCH] Fix default privileges for global opers. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1523 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 7 +++++++ doc/example.conf | 6 ++++-- ircd/client.c | 5 +++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 07e9a9b..8ba397d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-10-12 Michael Poole + + * 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 * ircd/os_generic.c (os_get_rusage): Make conditional on DEBUGMODE diff --git a/doc/example.conf b/doc/example.conf index 507376c..eb002e6 100644 --- a/doc/example.conf +++ b/doc/example.conf @@ -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 diff --git a/ircd/client.c b/ircd/client.c index 6aca8db..e3961b4 100644 --- a/ircd/client.c +++ b/ircd/client.c @@ -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)); -- 2.20.1