diff options
author | June McEnroe <june@causal.agency> | 2020-08-20 14:56:13 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-20 14:56:13 -0400 |
commit | d9a0364cb4b917d775948f74f79ead206549d4e1 (patch) | |
tree | d417acd1e49560969e3b57d2b667bcad410e41cf /chat.c | |
parent | Refactor base dir functions to iterate over paths (diff) | |
download | catgirl-d9a0364cb4b917d775948f74f79ead206549d4e1.tar.gz catgirl-d9a0364cb4b917d775948f74f79ead206549d4e1.zip |
Use configPath to load TLS cert/priv
Diffstat (limited to '')
-rw-r--r-- | chat.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/chat.c b/chat.c index 2a16b06..6befdde 100644 --- a/chat.c +++ b/chat.c @@ -220,19 +220,7 @@ int main(int argc, char *argv[]) { editCompleteAdd(); commandCompleteAdd(); - FILE *certFile = NULL; - FILE *privFile = NULL; - if (cert) { - certFile = configOpen(cert, "r"); - if (!certFile) return EX_NOINPUT; - } - if (priv) { - privFile = configOpen(priv, "r"); - if (!privFile) return EX_NOINPUT; - } - ircConfig(insecure, certFile, privFile); - if (certFile) fclose(certFile); - if (privFile) fclose(privFile); + ircConfig(insecure, cert, priv); uiInit(); if (save) { |