From 9469db993c276cba60041c3fd120aabd541530db Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 17 Aug 2018 21:50:45 -0400 Subject: Add logging The reason logFmt takes a timestamp as a parameter is to support IRCv3 server-time in the future to accurately log the znc buffer. Hopefully. --- chat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index 9d5a323..050a4f0 100644 --- a/chat.c +++ b/chat.c @@ -161,11 +161,12 @@ int main(int argc, char *argv[]) { const char *webirc = NULL; int opt; - while (0 < (opt = getopt(argc, argv, "W:h:j:n:p:u:vw:"))) { + while (0 < (opt = getopt(argc, argv, "W:h:j:l:n:p:u:vw:"))) { switch (opt) { break; case 'W': webirc = optarg; break; case 'h': host = strdup(optarg); break; case 'j': selfJoin(optarg); + break; case 'l': logOpen(optarg); break; case 'n': selfNick(optarg); break; case 'p': port = optarg; break; case 'u': selfUser(optarg); -- cgit 1.4.1