libpurple/protocols/irc/cmds.c

changeset 22167
7598efc97b07
parent 22092
52c00ca73f6f
child 22521
ae0104dc5c6f
equal deleted inserted replaced
22165:513ee34f34e5 22167:7598efc97b07
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;

mercurial