|
|
@@ -63,7 +63,11 @@ ircmsg(const char* fmt, |
|
|
|
{ exit(1); } |
|
|
|
|
|
|
|
puts(fmtdmsg); |
|
|
|
IRCMSG(fmtdmsg); // TODO: make it send the message line by line |
|
|
|
const char* delim = "\n"; |
|
|
|
char* data = strtok(fmtdmsg, delim); |
|
|
|
do{ |
|
|
|
IRCMSG(data); |
|
|
|
}while((data = strtok(NULL, delim), data)); |
|
|
|
|
|
|
|
free(fmtdmsg); |
|
|
|
va_end(args); |
|
|
|