diff options
author | June McEnroe <june@causal.agency> | 2018-10-28 02:44:09 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-10-28 02:44:09 -0400 |
commit | 2eaa36a30975d198d40b8f92c6b4add1eb111d31 (patch) | |
tree | d39803cd370c118def0e099725e0fa761bd5d40a /chat.c | |
parent | Use const char *argv[] signatures (diff) | |
download | catgirl-2eaa36a30975d198d40b8f92c6b4add1eb111d31.tar.gz catgirl-2eaa36a30975d198d40b8f92c6b4add1eb111d31.zip |
Add notification with notify-send
Diffstat (limited to '')
-rw-r--r-- | chat.c | 3 |
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); |