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 /config.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 'config.h')
-rw-r--r-- | config.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -40,16 +40,11 @@ // getconfstr() returns. int getconfstr(char *confname, char *filename, char* dest); -// Returns the avlue of the configuration option with name +// Returns the value of the configuration option with name // 'confname' from configuration file 'filename'. // Sets errno to 0 on success, or ECONFINT if it fails, in which case the return value is undefined. int getconfint(char *confname, char *filename); -// Check the password provided in the string 'str' against what is in -// the configuration file 'filename'. -// Return 0 for password mismatch, or 1 for password match. -int checkpassword(char *password, char *filename); - // Create the default configuration file. // Return 1 on success, 0 on failure. int createconfigfile(char *filename); |