summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--chat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/chat.c b/chat.c
index 9e3e374..35c0ecd 100644
--- a/chat.c
+++ b/chat.c
@@ -129,7 +129,7 @@ int main(int argc, char *argv[]) {
 	const char *user = NULL;
 	const char *real = NULL;
 
-	const char *Opts = "!C:H:N:O:RS:a:c:eg:h:j:k:n:p:r:s:u:vw:";
+	const char *Opts = "!C:H:N:O:RS:a:c:eg:h:j:k:ln:p:r:s:u:vw:";
 	const struct option LongOpts[] = {
 		{ "insecure", no_argument, NULL, '!' },
 		{ "copy", required_argument, NULL, 'C' },
@@ -144,6 +144,7 @@ int main(int argc, char *argv[]) {
 		{ "host", required_argument, NULL, 'h' },
 		{ "join", required_argument, NULL, 'j' },
 		{ "priv", required_argument, NULL, 'k' },
+		{ "log", no_argument, NULL, 'l' },
 		{ "nick", required_argument, NULL, 'n' },
 		{ "port", required_argument, NULL, 'p' },
 		{ "real", required_argument, NULL, 'r' },
@@ -171,6 +172,7 @@ int main(int argc, char *argv[]) {
 			break; case 'h': host = optarg;
 			break; case 'j': self.join = optarg;
 			break; case 'k': priv = optarg;
+			break; case 'l': logEnable = true;
 			break; case 'n': nick = optarg;
 			break; case 'p': port = optarg;
 			break; case 'r': real = optarg;
@@ -327,5 +329,6 @@ int main(int argc, char *argv[]) {
 	handle(msg);
 
 	ircClose();
+	logClose();
 	uiHide();
 }
-01-23 00:48:19 -0500'>2021-01-23Drop filesystem access iff possibleKlemens Nanni 2021-01-23Drop exec capability iff restrictedKlemens Nanni 2021-01-23Drop network capability after ircConnect()Klemens Nanni 2021-01-23Call pledge(2) after unveil(2)Klemens Nanni 2021-01-23Separate kiosk mode from restrict modeJune McEnroe 2021-01-21Simplify windowUpdate loops and factor out windowTopJune McEnroe 2021-01-21Document that M-l shows timestampsJune McEnroe 2021-01-19Don't lose swapped window when navigating to current bufferJeremy O'Brien 2021-01-19Use Warm heat for manually inserted blank linesJune McEnroe 2021-01-18Add example tmux(1) configKlemens Nanni 2021-01-17Use Warm heat for blank linesJune McEnroe 2021-01-16Add -I highlight option and /highlightJune McEnroe