diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-06-12 23:38:36 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-12 23:38:36 +0100 |
commit | 6a2f7b87d4fb19f30f64ede4b18582eb366c8b7d (patch) | |
tree | 5400375fe286c33385762b741593d1e84ddffe11 /functions.h | |
parent | 3038e93b7e2e34296429a078b70205448c81e6cb (diff) |
Allow reloading the configuration file at runtime using a BLABOUNCER command or by issuing the SIGHUP signal.
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |