mirror of
https://github.com/jeremyd/ergo.git
synced 2026-04-29 08:59:59 -07:00
fix #328 (implement DEFCON)
This commit is contained in:
14
irc/help.go
14
irc/help.go
@@ -164,6 +164,20 @@ Provides various debugging commands for the IRCd. <option> can be one of:
|
||||
* STOPCPUPROFILE: Stops the CPU profiler.
|
||||
* PROFILEHEAP: Writes a memory profile.
|
||||
* CRASHSERVER: Crashes the server (for use in failover testing)`,
|
||||
},
|
||||
"defcon": {
|
||||
oper: true,
|
||||
text: `DEFCON [level]
|
||||
|
||||
The DEFCON system can disable server features at runtime, to mitigate
|
||||
spam or other hostile activity. It has five levels, which are cumulative
|
||||
(i.e., level 3 includes all restrictions from level 4 and so on):
|
||||
|
||||
5: Normal operation
|
||||
4: No new account or channel registrations
|
||||
3: All channels are +R; no changes to vhosts
|
||||
2: No new unauthenticated connections
|
||||
1: No new connections except from localhost or other trusted IPs`,
|
||||
},
|
||||
"deoper": {
|
||||
oper: true,
|
||||
|
||||
Reference in New Issue
Block a user