Fixed bug in client which didn't send the null byte. added fork for notify-send
[irssi-notify.git] / server.c
index 1da2bcd..df70fb4 100644 (file)
--- a/server.c
+++ b/server.c
@@ -122,6 +122,8 @@ int main(void)
             }
             buf[100] = '\0';
             printf("server: recieved '%s'\n", buf);
+            if (!fork())
+                execl("/home/dylan/test", "irssi", buf, NULL);
                        close(new_fd);
                        exit(0);
                }