summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
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);