about summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-10-28 02:44:09 -0400
committerJune McEnroe <june@causal.agency>2018-10-28 02:44:09 -0400
commit2eaa36a30975d198d40b8f92c6b4add1eb111d31 (patch)
treed39803cd370c118def0e099725e0fa761bd5d40a /chat.c
parentUse const char *argv[] signatures (diff)
downloadcatgirl-2eaa36a30975d198d40b8f92c6b4add1eb111d31.tar.gz
catgirl-2eaa36a30975d198d40b8f92c6b4add1eb111d31.zip
Add notification with notify-send
Diffstat (limited to 'chat.c')
-rw-r--r--chat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chat.c b/chat.c
index c7a3229..014076b 100644
--- a/chat.c
+++ b/chat.c
@@ -65,8 +65,9 @@ int main(int argc, char *argv[]) {
 	const char *webirc = NULL;
 
 	int opt;
-	while (0 < (opt = getopt(argc, argv, "W:h:j:l:n:p:u:vw:"))) {
+	while (0 < (opt = getopt(argc, argv, "NW:h:j:l:n:p:u:vw:"))) {
 		switch (opt) {
+			break; case 'N': self.notify = true;
 			break; case 'W': webirc = optarg;
 			break; case 'h': host = strdup(optarg);
 			break; case 'j': selfJoin(optarg);