Mercurial > pidgin
diff plugins/yay/rxhandlers.c @ 1563:393b23c8f494
[gaim-migrate @ 1573]
notify when people add you to their list
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 11 Mar 2001 00:38:37 +0000 |
parents | 12f16a852540 |
children | 2c66d386be90 |
line wrap: on
line diff
--- a/plugins/yay/rxhandlers.c Sat Mar 10 23:59:53 2001 +0000 +++ b/plugins/yay/rxhandlers.c Sun Mar 11 00:38:37 2001 +0000 @@ -196,9 +196,11 @@ yahoo_parse_status(sess, pkt); break; case YAHOO_SERVICE_NEWCONTACT: - if (yahoo_makeint(pkt->msgtype) == 3) - yahoo_parse_message(sess, pkt); - else + if (yahoo_makeint(pkt->msgtype) == 3) { + char **str_array = g_strsplit(pkt->content, ",,", 2); + CALLBACK(sess, YAHOO_HANDLE_BUDDYADDED, pkt->nick2, str_array[0], str_array[1]); + g_strfreev(str_array); + } else yahoo_parse_status(sess, pkt); break; case YAHOO_SERVICE_IDACT: