aboutsummaryrefslogtreecommitdiff
path: root/irc.h
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-10-31 19:14:39 +0000
committerubq323 <ubq323@ubq323.website>2022-10-31 19:14:39 +0000
commit65fc26be19594c91b3af57c548c2e5c7307457f2 (patch)
treeed1857b7e5ac903896ecd8b6d1f43314748da584 /irc.h
parent1dc90feaf9d7db3c0e5d8233a5d60c46ee236c1c (diff)
multiple channels are now supported
Diffstat (limited to 'irc.h')
-rw-r--r--irc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/irc.h b/irc.h
index a56379d..870508f 100644
--- a/irc.h
+++ b/irc.h
@@ -10,8 +10,15 @@
#define IRC_RECVBUF_SIZE 1024
+// fd of the irc connection socket
extern int g_ircsock;
+// list of channels to join
+extern char *g_chanlist[];
+// length of the above
+extern const int g_nchannels;
+
+
// connects to the irc server, as defined in config.h
// returns -1 on failure.
int irc_connect();