ソースを参照

help: Add help text for snomasks

tags/v0.8.0
Daniel Oaks 7年前
コミット
ab2ae70f13
1個のファイルの変更34行の追加0行の削除
  1. 34
    0
      irc/help.go

+ 34
- 0
irc/help.go ファイルの表示

@@ -61,7 +61,30 @@ Oragono supports the following user modes:
61 61
   +a  |  User is marked as being away. This mode is set with the /AWAY command.
62 62
   +i  |  User is marked as invisible (their channels are hidden from whois replies).
63 63
   +o  |  User is an IRC operator.
64
+  +s  |  Server Notice Masks (see help with /HELPOP snomasks).
64 65
   +Z  |  User is connected via TLS.`
66
+	snomaskHelpText = `== Server Notice Masks ==
67
+
68
+Oragono supports the following server notice masks for operators:
69
+
70
+  a  |  Local announcements.
71
+  c  |  Local client connections.
72
+  j  |  Local channel actions.
73
+  k  |  Local kills.
74
+  n  |  Local nick changes.
75
+  o  |  Local oper actions.
76
+  q  |  Local quits.
77
+  t  |  Local /STATS usage.
78
+  u  |  Local client account actions.
79
+  x  |  Local X-lines (DLINE/KLINE/etc).
80
+
81
+To set a snomask, do this with your nickname:
82
+
83
+  /MODE <nick> +s <chars>
84
+
85
+For instance, this would set the kill, oper, account and xline snomasks on dan:
86
+
87
+  /MODE dan +s koux`
65 88
 )
66 89
 
67 90
 // Help contains the help strings distributed with the IRCd.
@@ -450,6 +473,17 @@ Returns historical information on the last user with the given nickname.`,
450 473
 		helpType:  InformationHelpEntry,
451 474
 		duplicate: true,
452 475
 	},
476
+	"snomask": {
477
+		text:      snomaskHelpText,
478
+		helpType:  InformationHelpEntry,
479
+		oper:      true,
480
+		duplicate: true,
481
+	},
482
+	"snomasks": {
483
+		text:     snomaskHelpText,
484
+		helpType: InformationHelpEntry,
485
+		oper:     true,
486
+	},
453 487
 
454 488
 	// RPL_ISUPPORT
455 489
 	"casemapping": {

読み込み中…
キャンセル
保存