From 6a2f7b87d4fb19f30f64ede4b18582eb366c8b7d Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 12 Jun 2019 23:38:36 +0100 Subject: Allow reloading the configuration file at runtime using a BLABOUNCER command or by issuing the SIGHUP signal. --- functions.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'functions.h') diff --git a/functions.h b/functions.h index c0e90f8..07fdf09 100644 --- a/functions.h +++ b/functions.h @@ -35,6 +35,7 @@ #include "sockets.h" #include "structures.h" #include "replay.h" +#include "config.h" // getstdin() return codes #define OK 0 @@ -156,4 +157,8 @@ void tryautonick(struct ircdstate *ircdstate); // "sourcefd" of 0 means the request didn't come from a client void cleanexit(SSL *server_ssl, struct client *clients, int sourcefd, struct ircdstate *ircdstate, struct settings *settings, char *quitmsg); +// Re-read the configuration file, setting 'failuremsg' to a failure message on failure. +// Returns 1 on success or 0 on failure. +int rehash(struct settings *settings, char *failuremsg); + #endif -- cgit v1.2.3