aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2016-06-11 10:35:52 +0000
committerepochqwert <epoch@hacking.allowed.org>2016-06-11 10:35:52 +0000
commitf34863dddcb3c7edfb1ca34a40ee921b6c34aada (patch)
tree7eec668600f0cf8ff89221915bca47cf6ebea4ee
parent57b66cfd6ad5f5504bab2bade4e031cc851498b4 (diff)
downloadlibirc-f34863dddcb3c7edfb1ca34a40ee921b6c34aada.tar.gz
libirc-f34863dddcb3c7edfb1ca34a40ee921b6c34aada.zip
added ||s to link.c for what it will try to send JOIN after.
-rw-r--r--examples/link.c2
1 files changed, 1 insertions, 1 deletions
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;