diff options
author | Curtis McEnroe | 2018-08-17 21:50:45 -0400 |
---|---|---|
committer | Curtis McEnroe | 2018-08-17 21:50:45 -0400 |
commit | 9469db993c276cba60041c3fd120aabd541530db (patch) | |
tree | 94c214117327e85774761339271ccc1ed33228b2 /chat.c | |
parent | 38fc42f03d89693fc7e3951fd7257d394f417a6f (diff) |
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.
Diffstat (limited to 'chat.c')
-rw-r--r-- | chat.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |