mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #328 (implement DEFCON)
This commit is contained in:
parent
f2d0842453
commit
6ea2eb367d
11 changed files with 70 additions and 7 deletions
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue