aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2015-03-31 13:26:03 -0500
committerepochqwert <epoch@hacking.allowed.org>2015-03-31 13:26:03 -0500
commitfea9534f13d5e0c603fd74f3f7f00ffe9094323c (patch)
tree6bb04f9d0ce0ae20e62b3c2818799a2fb154c71d
parent693a26b356905deef984f2f452c48346c4901395 (diff)
downloadlibirc-fea9534f13d5e0c603fd74f3f7f00ffe9094323c.tar.gz
libirc-fea9534f13d5e0c603fd74f3f7f00ffe9094323c.zip
took the struct out of libirc.c and make it include irc.h
-rw-r--r--libirc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libirc.c b/libirc.c
index 376a483..639b50d 100644
--- a/libirc.c
+++ b/libirc.c
@@ -8,6 +8,7 @@
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/select.h>
+#include "irc.h"
//#define DEBUG "epoch" //nick or channel to send debug info to.
#define CHUNK 4096
@@ -205,12 +206,6 @@ int ircConnect(char *serv,char *port,char *nick,char *user) {
return fd;
}
-struct user {
- char *nick;
- char *user;
- char *host;
-};
-
//this function mangles the input.
//gotta free the returned pointer but not each pointer in the array.
char **line_cutter(int fd,char *line,struct user *user) {