Преглед изворни кода

fix #1827

Document operator capabilities.
tags/v2.8.0
Shivaram Lingamneni пре 2 година
родитељ
комит
e74da6c51e
3 измењених фајлова са 44 додато и 32 уклоњено
  1. 21
    16
      default.yaml
  2. 2
    0
      docs/MANUAL.md
  3. 21
    16
      traditional.yaml

+ 21
- 16
default.yaml Прегледај датотеку

@@ -603,7 +603,12 @@ channels:
603 603
     # (0 or omit for no expiration):
604 604
     invite-expiration: 24h
605 605
 
606
-# operator classes
606
+# operator classes:
607
+# an operator has a single "class" (defining a privilege level), which can include
608
+# multiple "capabilities" (defining privileged actions they can take). all
609
+# currently available operator capabilities are associated with either the
610
+# 'chat-moderator' class (less privileged) or the 'server-admin' class (full
611
+# privileges) below: you can mix and match to create new classes.
607 612
 oper-classes:
608 613
     # chat moderator: can ban/unban users from the server, join channels,
609 614
     # fix mode issues and sort out vhosts.
@@ -613,15 +618,15 @@ oper-classes:
613 618
 
614 619
         # capability names
615 620
         capabilities:
616
-            - "kill"
617
-            - "ban"
618
-            - "nofakelag"
619
-            - "roleplay"
620
-            - "relaymsg"
621
-            - "vhosts"
622
-            - "sajoin"
623
-            - "samode"
624
-            - "snomasks"
621
+            - "kill"      # disconnect user sessions
622
+            - "ban"       # ban IPs, CIDRs, and NUH masks ("d-line" and "k-line")
623
+            - "nofakelag" # remove "fakelag" restrictions on rate of message sending
624
+            - "relaymsg"  # use RELAYMSG in any channel (see the 'relaymsg' config block)
625
+            - "vhosts"    # add and remove vhosts from users
626
+            - "sajoin"    # join arbitrary channels, including private channels
627
+            - "samode"    # modify arbitrary channel and user modes
628
+            - "snomasks"  # subscribe to arbitrary server notice masks
629
+            - "roleplay"  # use the (deprecated) roleplay commands in any channel
625 630
 
626 631
     # server admin: has full control of the ircd, including nickname and
627 632
     # channel registrations
@@ -634,12 +639,12 @@ oper-classes:
634 639
 
635 640
         # capability names
636 641
         capabilities:
637
-            - "rehash"
638
-            - "accreg"
639
-            - "chanreg"
640
-            - "history"
641
-            - "defcon"
642
-            - "massmessage"
642
+            - "rehash"       # rehash the server, i.e. reload the config at runtime
643
+            - "accreg"       # modify arbitrary account registrations
644
+            - "chanreg"      # modify arbitrary channel registrations
645
+            - "history"      # modify or delete history messages
646
+            - "defcon"       # use the DEFCON command (restrict server capabilities)
647
+            - "massmessage"  # message all users on the server
643 648
 
644 649
 # ircd operators
645 650
 opers:

+ 2
- 0
docs/MANUAL.md Прегледај датотеку

@@ -151,6 +151,8 @@ You'll need an [up-to-date distribution of the Go language for your OS and archi
151 151
 
152 152
 Many administrative actions on an IRC server are performed "in-band" as IRC commands sent from a client. The client in question must be an IRC operator ("oper", "ircop"). The easiest way to become an operator on your new Ergo instance is first to pick a strong, secure password, then "hash" it using the `ergo genpasswd` command (run `ergo genpasswd` from the command line, then enter your password twice), then copy the resulting hash into the `opers` section of your `ircd.yaml` file. Then you can become an operator by issuing the IRC command: `/oper admin mysecretpassword`.
153 153
 
154
+The operator defined in the default configuration file is named `admin` and has full administrative privileges on the server; see the `oper-classes` and `opers` blocks for information on how to define additional operators, or less privileged operators.
155
+
154 156
 
155 157
 ## Rehashing
156 158
 

+ 21
- 16
traditional.yaml Прегледај датотеку

@@ -576,7 +576,12 @@ channels:
576 576
     # (0 or omit for no expiration):
577 577
     invite-expiration: 24h
578 578
 
579
-# operator classes
579
+# operator classes:
580
+# an operator has a single "class" (defining a privilege level), which can include
581
+# multiple "capabilities" (defining privileged actions they can take). all
582
+# currently available operator capabilities are associated with either the
583
+# 'chat-moderator' class (less privileged) or the 'server-admin' class (full
584
+# privileges) below: you can mix and match to create new classes.
580 585
 oper-classes:
581 586
     # chat moderator: can ban/unban users from the server, join channels,
582 587
     # fix mode issues and sort out vhosts.
@@ -586,15 +591,15 @@ oper-classes:
586 591
 
587 592
         # capability names
588 593
         capabilities:
589
-            - "kill"
590
-            - "ban"
591
-            - "nofakelag"
592
-            - "roleplay"
593
-            - "relaymsg"
594
-            - "vhosts"
595
-            - "sajoin"
596
-            - "samode"
597
-            - "snomasks"
594
+            - "kill"      # disconnect user sessions
595
+            - "ban"       # ban IPs, CIDRs, and NUH masks ("d-line" and "k-line")
596
+            - "nofakelag" # remove "fakelag" restrictions on rate of message sending
597
+            - "relaymsg"  # use RELAYMSG in any channel (see the 'relaymsg' config block)
598
+            - "vhosts"    # add and remove vhosts from users
599
+            - "sajoin"    # join arbitrary channels, including private channels
600
+            - "samode"    # modify arbitrary channel and user modes
601
+            - "snomasks"  # subscribe to arbitrary server notice masks
602
+            - "roleplay"  # use the (deprecated) roleplay commands in any channel
598 603
 
599 604
     # server admin: has full control of the ircd, including nickname and
600 605
     # channel registrations
@@ -607,12 +612,12 @@ oper-classes:
607 612
 
608 613
         # capability names
609 614
         capabilities:
610
-            - "rehash"
611
-            - "accreg"
612
-            - "chanreg"
613
-            - "history"
614
-            - "defcon"
615
-            - "massmessage"
615
+            - "rehash"       # rehash the server, i.e. reload the config at runtime
616
+            - "accreg"       # modify arbitrary account registrations
617
+            - "chanreg"      # modify arbitrary channel registrations
618
+            - "history"      # modify or delete history messages
619
+            - "defcon"       # use the DEFCON command (restrict server capabilities)
620
+            - "massmessage"  # message all users on the server
616 621
 
617 622
 # ircd operators
618 623
 opers:

Loading…
Откажи
Сачувај