From f34863dddcb3c7edfb1ca34a40ee921b6c34aada Mon Sep 17 00:00:00 2001 From: epochqwert Date: Sat, 11 Jun 2016 10:35:52 +0000 Subject: added ||s to link.c for what it will try to send JOIN after. --- examples/link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/link.c b/examples/link.c index dc2ffab..6c26516 100644 --- a/examples/link.c +++ b/examples/link.c @@ -52,7 +52,7 @@ void line_handler(int fd,char *line) {//this should be built into the libary? printf("line: '%s'\n",line); a=line_cutter(fd,line,user); if(!user->user && a[0]) { - if(!strcmp(a[0],"004")) { + if(!strcmp(a[0],"004") || !strcmp(a[0],"001") || !strcmp(a[0],"376")) { snprintf(tmp,sizeof(tmp)-1,"JOIN %s\r\n",chans[fdtoi(fd)][0]=='u'?chans[fdtoi(fd)]+1:chans[fdtoi(fd)]); temp=strchr(chans[fdtoi(fd)],' '); if(temp) *temp=0; -- cgit v1.2.3