about summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-07-07 14:40:44 -0400
committerJune McEnroe <june@causal.agency>2023-07-07 14:40:44 -0400
commitdc132b4350d207d147bb79d997c3f8b511c4ac30 (patch)
tree564e83a1a55b85b22ac67e3ae536aa578af3dd58 /chat.c
parentFix what went wrong, part 3 (diff)
downloadcatgirl-dc132b4350d207d147bb79d997c3f8b511c4ac30.tar.gz
catgirl-dc132b4350d207d147bb79d997c3f8b511c4ac30.zip
Work-in-progress showing prefixes
Diffstat (limited to 'chat.c')
-rw-r--r--chat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chat.c b/chat.c
index 8c425d4..bb05d7d 100644
--- a/chat.c
+++ b/chat.c
@@ -248,6 +248,7 @@ int main(int argc, char *argv[]) {
 		{ .val = 'K', .name = "kiosk", no_argument },
 		{ .val = 'N', .name = "notify", required_argument },
 		{ .val = 'O', .name = "open", required_argument },
+		{ .val = 'P', .name = "prefix", no_argument },
 		{ .val = 'R', .name = "restrict", no_argument },
 		{ .val = 'S', .name = "bind", required_argument },
 		{ .val = 'T', .name = "timestamp", optional_argument },
@@ -289,6 +290,7 @@ int main(int argc, char *argv[]) {
 			break; case 'K': self.kiosk = true;
 			break; case 'N': utilPush(&uiNotifyUtil, optarg);
 			break; case 'O': utilPush(&urlOpenUtil, optarg);
+			break; case 'P': self.showPrefix = true;
 			break; case 'R': self.restricted = true;
 			break; case 'S': bind = optarg;
 			break; case 'T': {