From 2eaa36a30975d198d40b8f92c6b4add1eb111d31 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 28 Oct 2018 02:44:09 -0400 Subject: Add notification with notify-send --- chat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chat.c') 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); -- cgit 1.4.1