From 8b3bf897c2b7a14ff6a4c096b9969eaeb695a9e0 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 6 Feb 2020 02:21:04 -0500 Subject: Search for cert and priv in config dirs --- chat.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index 115fe38..c487722 100644 --- a/chat.c +++ b/chat.c @@ -111,7 +111,19 @@ int main(int argc, char *argv[]) { set(&self.chanTypes, "#&"); set(&self.prefixes, "@+"); - ircConfig(insecure, cert, priv); + FILE *certFile = NULL; + FILE *privFile = NULL; + if (cert) { + certFile = configOpen(cert, "r"); + if (!certFile) err(EX_NOINPUT, "%s", cert); + } + if (priv) { + privFile = configOpen(priv, "r"); + if (!privFile) err(EX_NOINPUT, "%s", priv); + } + ircConfig(insecure, certFile, privFile); + if (certFile) fclose(certFile); + if (privFile) fclose(privFile); uiInit(); uiShowID(Network); -- cgit 1.4.0 td class='sub right'>
summary refs log tree commit diff
path: root/bin/1sh/echo.c (unfollow)
Commit message (Collapse)Author
2020-08-18Highlight .in files as shJune McEnroe
Almost always templated shell for rc scripts.
2020-08-15Bump title buffer to 64KJune McEnroe
YouTube now sends <title> that occurs 38K into the file...
2020-08-09Publish "LibreTLS"June McEnroe
2020-08-02Add scooper update to "IRC Suite"June McEnroe
2020-07-31Add scooper to causal.agencyJune McEnroe
2020-07-25Fix setting second title request to GETJune McEnroe
Since 9c845be2797e2047547ec247cb037471aeb48bb0 in curl (7.71.0), setting CURLOPT_NOBODY to 1 sets the request method to HEAD, but setting it back to 0 does not change the method back to GET. Setting CURLOPT_HTTPGET both sets the request method and unsets CURLOPT_NOBODY.
2020-07-20Set pull.rebase trueJune McEnroe
2020-07-18Read from stdin in orderJune McEnroe
2020-07-18Actually fix nvim and doas presence testsJune McEnroe
2020-07-14Install up CGI with mode 700June McEnroe
It should never be served as a regular file.
2020-07-14Check that there is upload dataJune McEnroe
2020-07-14Add CGI upload program for temp.causal.agencyJune McEnroe
2020-07-10Add The Broken KingdomsJune McEnroe
2020-07-08Add facebook and twitter to title user-agentJune McEnroe
This fixes fetching tweets again! https://github.com/thelounge/thelounge/pull/ 3602 (Intentionally breaking the link so GitHub doesn't add a "referenced this PR" thing?)
2020-06-30Tweak causal.agency for mostly no reasonJune McEnroe
2020-06-30Add Ancillary JusticeJune McEnroe
2020-06-26Add password non-manager to planJune McEnroe
I've had this idea for years...
2020-06-26Tweak TF2 sensitivities once moreJune McEnroe
2020-06-19Add note about litterbox bot useJune McEnroe
2020-06-19Publish "IRC suite"June McEnroe
2020-06-17Add errors to link.shJune McEnroe