aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2024-12-26 21:18:05 -0800
committerPreston Pan <ret2pop@gmail.com>2024-12-26 21:18:05 -0800
commitfd14f6fbf8206589d2a0ad8f0793845cb8faf1d7 (patch)
treeac3f8288b9e5e9d5e3acaf7d07694dc04157233a /src/main.c
parente75d6f6b8f4512a5bbfecbfa8c17f0bb687e3d55 (diff)
stuff
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8555da1..7a17966 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,6 +14,7 @@
#include <array.h>
#include <better_string.h>
+#include <hash_table.h>
#include <helpers.h>
#include <opcodes.h>
#include <protocol.h>
@@ -22,6 +23,9 @@ int PORT = DEFAULT_PORT;
int nfds = 1;
struct pollfd fds[MAX_CONNECTIONS * 2];
+ht_t *USERS;
+ht_t *CHAN;
+
void handle_sigint(int sig) {
for (int i = 0; i < nfds; i++) {
if (fds[i].fd >= 0) {