diff --git a/src/irc.c b/src/irc.c index 807138c..1817712 100644 --- a/src/irc.c +++ b/src/irc.c @@ -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);