From 65fc26be19594c91b3af57c548c2e5c7307457f2 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 31 Oct 2022 19:14:39 +0000 Subject: multiple channels are now supported --- unix.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unix.h') diff --git a/unix.h b/unix.h index 57d1cfc..50511b1 100644 --- a/unix.h +++ b/unix.h @@ -10,9 +10,14 @@ #include + // takes filename, returns socket fd // or -1 on failure. int unix_setup(char sockname[]); +// reads a message from unix socket on fd, +// and sends it to irc on the channel chname. +int unix_handle(int fd, char chname[]); + #endif // unix_h_INCLUDED -- cgit v1.2.3