diff --git a/main.c b/main.c index 81b4c1b..e4797ed 100644 --- a/main.c +++ b/main.c @@ -101,8 +101,7 @@ readSocks = select(highSock+1,&readset,0x0,0x0,&timeout); if (readSocks < 0) { - writeLog(0,"Error: select Failed\nShutting Down\n") - perror("select failed"); + writeLog(0,"Error: select Failed\nShutting Down\n"); exit(0x1); } else if (readSocks > 0) { diff --git a/tuve.c b/tuve.c index 44ca4fe..050b60a 100644 --- a/tuve.c +++ b/tuve.c @@ -185,6 +185,20 @@ } } } + else if (strcasecmp(cmd,"VIDC") == 0x0) { + if (data != 0x0) { + chan = strtok_r(data,":",&tok_last); + msg = strtok_r(NULL,"\n",&tok_last); + if (msg == 0x0) + goto Tail; + + tmpConnection = findNick(chan); + if (tmpConnection != 0x0) + sSendData(tmpConnection,"VIDC:%s:%s",userConnection->userInfo.username,msg); + else + sSendData(tmpConnection,"MSG:%s:PRIVMSG:Is Not Available.",chan); + } + } else if (strcasecmp(cmd,"MODE") == 0x0) { if (data == 0x0) { sSendData(userConnection,"MODE:FAILED");