comparison libpurple/protocols/irc/parse.c @ 31648:fa88dc1dcabb

merged from im.pidgin.pidgin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 12 Feb 2011 04:17:09 +0900
parents c92bc01056ea a8cc50c2279f
children 7281d151e492
comparison
equal deleted inserted replaced
31508:c92bc01056ea 31648:fa88dc1dcabb
856 * The data passed to irc-receiving-text is the raw protocol data. 856 * The data passed to irc-receiving-text is the raw protocol data.
857 * TODO: It should be passed as an array of bytes and a length 857 * TODO: It should be passed as an array of bytes and a length
858 * instead of a null terminated string. 858 * instead of a null terminated string.
859 */ 859 */
860 purple_signal_emit(_irc_plugin, "irc-receiving-text", gc, &input); 860 purple_signal_emit(_irc_plugin, "irc-receiving-text", gc, &input);
861 861
862 if (!strncmp(input, "PING ", 5)) { 862 if (!strncmp(input, "PING ", 5)) {
863 msg = irc_format(irc, "vv", "PONG", input + 5); 863 msg = irc_format(irc, "vv", "PONG", input + 5);
864 irc_send(irc, msg); 864 irc_send(irc, msg);
865 g_free(msg); 865 g_free(msg);
866 return; 866 return;