Replace privilege-controlling Feature settings with
[ircu2.10.12-pk.git] / doc / example.conf
index 327f270e0ab7efaa6728c093aa65f905a03d4ea9..c55148c51524ad34b026820550095e16be097911 100644 (file)
@@ -161,7 +161,57 @@ Class {
  sendq = 160000;
  maxlinks = 400;
 };
+Class {
+ name = "Opers";
+ pingfreq = 1 minutes 30 seconds;
+ sendq = 160000;
+ maxlinks = 10;
+
+ # For connection classes intended for operator use, you can specify
+ # privileges used when the Operator block (see below) names this
+ # class.  The local (aka globally_opered) privilege MUST be defined
+ # by either the Class or Operator block.  The following privileges
+ # exist:
+ #
+ # local (or propagate, with the opposite sense)
+ # whox  (can use x flag with /WHO)
+ # display (oper status visible to lusers)
+ # chan_limit (can join local channels when in
+ #                              MAXCHANNELSPERUSER channels)
+ # mode_lchan (can /MODE &channel without chanops)
+ # deop_lchan (cannot be deopped or kicked on local channels)
+ # walk_lchan (can forcibly /JOIN &channel OVERRIDE)
+ # show_invis (see +i users in /WHO x)
+ # show_all_invis (see +i users in /WHO x)
+ # unlimit_query (show more results from /WHO)
+ # local_kill (can kill clients on this server)
+ # rehash (can use /REHASH)
+ # die (can use /DIE)
+ # local_jupe_server (not used)
+ # set (can use /SET)
+ # local_gline (can set a G-line for this server only)
+ # local_badchan (can set a Gchan for this server only)
+ # see_chan (can see users in +s channels in /WHO)
+ # wide_gline (can use ! to force a wide G-line)
+ # see_opers (can see opers without DISPLAY privilege)
+ # force_local_opmode (can use OPMODE/CLEARMODE on quarantined local channels)
+ # kill (can kill clients on other servers)
+ # gline (can issue G-lines to other servers)
+ # jupe_server (not used)
+ # opmode (can use /OPMODE)
+ # badchan (can issue Gchans to other servers)
+ # force_opmode (can use OPMODE/CLEARMODE on quarantined global channels)
+ #
+ # For global opers (with propagate = yes or local = no), the default
+ # is to grant all of the above privileges.  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
+ # Any privileges listed in a Class block override the defaults.
 
+ local = no;
+};
 # [Client]
 #
 # To allow clients to connect, they need authorization. This can be
@@ -567,47 +617,14 @@ CRULE
 # them from using Uworld as well.
 #
 # Operator {
-#  local = yes;
 #  host = "host/IP mask";
 #  name = "opername";
 #  password = "encryptedpass";
 #  class = "classname";
-#
-#  # You can also specify per-operator privileges, many of which can
-#  # be globally disabled by settings in the "features" block (as
-#  # indicated).
-#  extended_who_information = yes;
-#  oper_status_display = yes;
-#  globally_opered = no;              # inverted alias for local
-#  bypass_local_channel_limits = yes; # unless OPER_NO_CHAN_LIMIT = FALSE
-#  set_local_channel_modes = yes;     # unless OPER_MODE_LCHAN = FALSE
-#  protected_local_channel = yes;     # unless NO_OPER_DEOP_LCHAN = FALSE
-#  bypass_join_local_channels = yes;  # unless OPER_WALK_THROUGH_LMODES = FALSE
-#  see_invisible_users = yes;         # unless SHOW_INVISIBLE_USERS = FALSE
-#  list_all_invisible_users = yes;    # unless SHOW_ALL_INVISIBLE_USERS = FALSE
-#  unlimited_who_queries = yes;       # unless UNLIMIT_OPER_QUERY = FALSE
-#
-#  # The following privileges have two settings in the "features" block;
-#  # one to globally disable for local operators, one to globally disable
-#  # the privilege for global operators.
-#  local_kill = yes;                  # unless {OPER,LOCOP}_KILL = FALSE
-#  rehash = yes;                      # unless {OPER,LOCOP}_REHASH = FALSE
-#  die = yes;                         # unless {OPER,LOCOP}_DIE = FALSE
-#  local_gline = yes;                 # unless {OPER,LOCOP}_LGLINE = FALSE
-#  local_jupe_server = yes;           # unless {OPER,LOCOP}_LJUPE = FALSE
-#  change_settings = yes;             # unless {OPER,LOCOP}_SET = FALSE
-#  local_gline_channels = yes;        # unless {OPER,LOCOP}_LBADCHAN = FALSE
-#  see_private_channels = yes;        # unless {OPER,LOCOP}_SEE_IN_SECRET_CHANNELS = FALSE
-#  wide_glines = yes;                 # unless {OPER,LOCOP}_WIDE_GLINE = FALSE
-#
-#  # The following privileges default to yes for global operators and
-#  # to no for local operators.
-#  see_other_opers = yes;             # unless local
-#  global_kill = yes;                 # unless local or LOCAL_KILL_ONLY = TRUE
-#  gline = yes;                       # unless local or OPER_GLINE = FALSE
-#  jupe_server = yes;                 # unless local or OPER_JUPE = FALSE
-#  hack_channel_modes = yes;          # unless local or OPER_OPMODE = FALSE
-#  gline_channels = yes;              # unless local or OPER_BADCHAN = FALSE
+#  # You can also set any operator privilege; see the Class block
+#  # documentation for details.  A privilege defined for a single
+#  # Operator will override the privilege settings for the Class
+#  # and the default setting.
 # };
 #
 # The encrypted password is optional.  If you wish to encrypt your
@@ -625,11 +642,10 @@ Operator {
  class = "Local";
 };
 Operator {
- local = yes;
  host = "*@*.uu.net";
  password = "notencryptedpass";
  name = "Niels";
- class = "Local";
+ class = "Opers";
 };
 
 # Note that the <connection class> is optional, but leaving it away
@@ -789,43 +805,7 @@ features
 # "IPCHECK_CLONE_PERIOD" = "40";
 # "IPCHECK_CLONE_DELAY" = "600";
 # "CRYPT_OPER_PASSWORD" = "TRUE";
-# "OPER_NO_CHAN_LIMIT" = "TRUE";
-# "OPER_MODE_LCHAN" = "TRUE";
-# "OPER_WALK_THROUGH_LMODES" = "FALSE";
-# "NO_OPER_DEOP_LCHAN" = "FALSE";
-# "SHOW_INVISIBLE_USERS" = "TRUE";
-# "SHOW_ALL_INVISIBLE_USERS" = "TRUE";
-# "UNLIMIT_OPER_QUERY" = "FALSE";
-# "LOCAL_KILL_ONLY" = "FALSE";
 # "CONFIG_OPERCMDS" = "FALSE";
-# "OPER_KILL" = "TRUE";
-# "OPER_REHASH" = "TRUE";
-# "OPER_RESTART" = "TRUE";
-# "OPER_DIE" = "TRUE";
-# "OPER_GLINE" = "TRUE";
-# "OPER_LGLINE" = "TRUE";
-# "OPER_JUPE" = "TRUE";
-# "OPER_LJUPE" = "TRUE";
-# "OPER_OPMODE" = "TRUE";
-# "OPER_LOPMODE" = "TRUE";
-# "OPER_BADCHAN" = "FALSE";
-# "OPER_LBADCHAN" = "FALSE";
-# "OPER_SET" = "FALSE";
-# "OPERS_SEE_IN_SECRET_CHANNELS" = "TRUE";
-# "OPER_WIDE_GLINE" = "TRUE";
-# "OPER_LIST_CHAN" = "TRUE";
-# "LOCOP_KILL" = "TRUE";
-# "LOCOP_REHASH" = "TRUE";
-# "LOCOP_RESTART" = "FALSE";
-# "LOCOP_DIE" = "FALSE";
-# "LOCOP_LGLINE" = "TRUE";
-# "LOCOP_LJUPE" = "TRUE";
-# "LOCOP_LOPMODE" = "TRUE";
-# "LOCOP_LBADCHAN" = "FALSE";
-# "LOCOP_SET" = "FALSE";
-# "LOCOP_SEE_IN_SECRET_CHANNELS" = "FALSE";
-# "LOCOP_WIDE_GLINE" = "FALSE";
-# "LOCOP_LIST_CHAN" = "FALSE";
 # "OPLEVELS" = "TRUE";
 # "LOCAL_CHANNELS" = "TRUE";
 };