| 365 while (*end && *cur) { |
365 while (*end && *cur) { |
| 366 end = strchr(cur, '\n'); |
366 end = strchr(cur, '\n'); |
| 367 if (!end) |
367 if (!end) |
| 368 end = cur + strlen(cur); |
368 end = cur + strlen(cur); |
| 369 msg = g_strndup(cur, end - cur); |
369 msg = g_strndup(cur, end - cur); |
| 370 buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg); |
370 |
| |
371 if(!strcmp(cmd, "msg")) |
| |
372 buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg); |
| |
373 else /* seding a notice if we get here */ |
| |
374 buf = irc_format(irc, "vt:", "NOTICE", args[0], msg); |
| |
375 |
| 371 irc_send(irc, buf); |
376 irc_send(irc, buf); |
| 372 g_free(msg); |
377 g_free(msg); |
| 373 g_free(buf); |
378 g_free(buf); |
| 374 cur = end + 1; |
379 cur = end + 1; |
| 375 } |
380 } |