| 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 |
370 |
| 371 if(!strcmp(cmd, "msg")) |
371 if(!strcmp(cmd, "notice")) |
| |
372 buf = irc_format(irc, "vt:", "NOTICE", args[0], msg); |
| |
373 else |
| 372 buf = irc_format(irc, "vt:", "PRIVMSG", args[0], msg); |
374 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 |
375 |
| 376 irc_send(irc, buf); |
376 irc_send(irc, buf); |
| 377 g_free(msg); |
377 g_free(msg); |
| 378 g_free(buf); |
378 g_free(buf); |
| 379 cur = end + 1; |
379 cur = end + 1; |