comparison libpurple/protocols/msn/notification.c @ 28834:6100cb11bae8

Parse online presence from yahoo buddies after going online on MSN.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 30 Oct 2009 01:32:28 +0000
parents f55bd60e2738
children 96f0f6af5da2
comparison
equal deleted inserted replaced
28833:9c6495646694 28834:6100cb11bae8
1066 user = msn_userlist_find_user(session->userlist, passport); 1066 user = msn_userlist_find_user(session->userlist, passport);
1067 if (user == NULL) 1067 if (user == NULL)
1068 /* Where'd this come from? */ 1068 /* Where'd this come from? */
1069 return; 1069 return;
1070 1070
1071 if (cmd->param_count == 7) { 1071 if (cmd->param_count == 8) {
1072 /* Yahoo! Buddy, looks like */
1073 networkid = atoi(cmd->params[3]);
1074 friendly = g_strdup(purple_url_decode(cmd->params[4]));
1075 clientid = strtoul(cmd->params[5], NULL, 10);
1076
1077 /* cmd->params[7] seems to be a URL to a Yahoo! icon:
1078 https://sec.yimg.com/i/us/nt/b/purpley.1.0.png
1079 ... and it's purple, HAH!
1080 */
1081 } else if (cmd->param_count == 7) {
1072 /* MSNP14+ with Display Picture object */ 1082 /* MSNP14+ with Display Picture object */
1073 networkid = atoi(cmd->params[3]); 1083 networkid = atoi(cmd->params[3]);
1074 friendly = g_strdup(purple_url_decode(cmd->params[4])); 1084 friendly = g_strdup(purple_url_decode(cmd->params[4]));
1075 clientid = strtoul(cmd->params[5], NULL, 10); 1085 clientid = strtoul(cmd->params[5], NULL, 10);
1076 msnobj = msn_object_new_from_string(purple_url_decode(cmd->params[6])); 1086 msnobj = msn_object_new_from_string(purple_url_decode(cmd->params[6]));