1
0
Fork 0
forked from External/ergo

dline: Prevent opers from banning themselves

This commit is contained in:
Daniel Oaks 2016-11-05 21:44:49 +10:00
parent e973862944
commit f1e2c54fca
2 changed files with 23 additions and 2 deletions

View file

@ -99,7 +99,7 @@ Prints debug information about the IRCd. <option> can be one of:
},
"dline": {
oper: true,
text: `DLINE [duration] <ip>/<net> [ON <server>] [reason [| oper reason]]
text: `DLINE [MYSELF] [duration] <ip>/<net> [ON <server>] [reason [| oper reason]]
Bans an IP address or network from connecting to the server. If the duration is
given then only for that long. The reason is shown to the user themselves, but
@ -108,6 +108,9 @@ operators getting info about the DLINEs that exist.
Bans are saved across subsequent launches of the server.
"MYSELF" is required when the DLINE matches the address the person applying it is connected
from. If "MYSELF" is not given, trying to DLINE yourself will result in an error.
[duration] can be of the following forms:
10h 8m 13s
@ -115,6 +118,8 @@ Bans are saved across subsequent launches of the server.
127.0.0.1/8
8.8.8.8/24
ON <server> specifies that the ban is to be set on that specific server.
[reason] and [oper reason], if they exist, are separated by a vertical bar (|).`,
},
"help": {