diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-06-16 21:16:29 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-16 21:16:29 +0100 |
commit | 67fd69854489a088bc8d90702ba37cecccd6f169 (patch) | |
tree | ac0efe967e433d725cab51b6fe93aa685c928950 /functions.h | |
parent | a31e7b13b3cef0872be5922a568633d74dd408d2 (diff) |
Load all settings from configuration file at startup instead of reading it for certain settings (password/nick/nick2/nick3).
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 07fdf09..c91bfdc 100644 --- a/functions.h +++ b/functions.h @@ -161,4 +161,9 @@ void cleanexit(SSL *server_ssl, struct client *clients, int sourcefd, struct irc // Returns 1 on success or 0 on failure. int rehash(struct settings *settings, char *failuremsg); +// Check the password provided in the string 'str' against what is in +// the settings structure 'settings'. +// Return 0 for password mismatch, or 1 for password match. +int checkpassword(char *password, struct settings *settings); + #endif |