about summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-17 21:50:45 -0400
committerJune McEnroe <june@causal.agency>2018-08-17 21:50:45 -0400
commit9469db993c276cba60041c3fd120aabd541530db (patch)
tree94c214117327e85774761339271ccc1ed33228b2 /chat.c
parentAdd UI "heat" for status/messages/pings (diff)
downloadcatgirl-9469db993c276cba60041c3fd120aabd541530db.tar.gz
catgirl-9469db993c276cba60041c3fd120aabd541530db.zip
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 '')
-rw-r--r--chat.c3
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);