summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-06-16 21:16:29 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-06-16 21:16:29 +0100
commit67fd69854489a088bc8d90702ba37cecccd6f169 (patch)
treeac0efe967e433d725cab51b6fe93aa685c928950 /config.h
parenta31e7b13b3cef0872be5922a568633d74dd408d2 (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.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/config.h b/config.h
index b204b5f..2f2db9f 100644
--- a/config.h
+++ b/config.h
@@ -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);