1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 17:03:13 +02:00

Add extra protections to avoid rebooting the wrong network.

This commit is contained in:
Sadie Powell
2025-02-12 15:39:41 +00:00
parent 8486962fef
commit 3e986b215e
2 changed files with 44 additions and 4 deletions
+11 -1
View File
@@ -649,7 +649,17 @@ command { service = "OperServ"; name = "SET"; command = "operserv/set"; permissi
*
* Used to quit, restart, or shutdown services.
*/
module { name = "os_shutdown" }
module
{
name = "os_shutdown"
/*
* If enabled then server operators will be required to provide the network
* name to confirm that they are quitting, restarting, or shutting down the
* right server.
*/
requirename = yes
}
command { service = "OperServ"; name = "QUIT"; command = "operserv/quit"; permission = "operserv/quit"; }
command { service = "OperServ"; name = "RESTART"; command = "operserv/restart"; permission = "operserv/restart"; }
command { service = "OperServ"; name = "SHUTDOWN"; command = "operserv/shutdown"; permission = "operserv/shutdown"; }