1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:24:49 +02:00

Add support for loading forbids from a file.

Closes #365.
This commit is contained in:
Sadie Powell
2025-11-20 15:03:29 +00:00
parent cfe1317b5d
commit 319a523b4f
4 changed files with 108 additions and 7 deletions
+28 -1
View File
@@ -351,7 +351,34 @@ command { service = "OperServ"; name = "CONFIG"; command = "operserv/config"; pe
*
* Used to forbid specific nicks, channels, emails, etc. from being used.
*/
module { name = "os_forbid" }
module
{
name = "os_forbid"
/*
* Allows loading forbids from a file.
*/
#file
{
/*
* The type of forbid to add. Can be set to "chan", "email", "nick",
* "password", or "register".
*/
type = "email"
/*
* The file to read forbids from. Each forbid should be placed on a new
* line. Surrounding whitespace will be ignored.
*/
file = "temp-emails.txt"
/**
* The reason why entries from this file are forbidden.
*/
reason = "Temporary email"
}
}
command { service = "OperServ"; name = "FORBID"; command = "operserv/forbid"; permission = "operserv/forbid"; }
/*