Code:
void send_to_server(sendpattern, p1, p2, p3, p4, p5, p6, p7, p8, p9)
char sendpattern[512];
///char *p1, *p2, *p3, *p4, *p5, *p6, *p7, *p8, *p9;
char p1[512], p2[512], p3[512], p4[512], p5[512], p6[512], p7[512], p8[512], p9[512];
{
int success;
sprintf(out, sendpattern, p1, p2, p3, p4, p5, p6, p7, p8, p9);
strcat(out, "\n");
success = write(sockfd, out, strlen(out));
if (success < 1)
reconnect_to_server(1);
return;
}
----------
for (j = 0; j < width; j++)
if (i + j < len)
printf("%c", isprint(str[j]) ? str[j] : nonprint_char);
if (useirc) {
send_to_server("PRIVMSG %s :%c", IRCCHAN, isprint(str[j]) ? str[j] : nonprint_char);
///say("%c", isprint(str[j]) ? str[j] : nonprint_char);
}
-----------------