aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
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) {