# HG changeset patch # User Sadrul Habib Chowdhury # Date 1256866348 0 # Node ID 6100cb11bae8350fecaf3d36421ab1edc1e422d7 # Parent 9c6495646694c4799344ff3136853eb7275c813b Parse online presence from yahoo buddies after going online on MSN. diff -r 9c6495646694 -r 6100cb11bae8 libpurple/protocols/msn/notification.c --- a/libpurple/protocols/msn/notification.c Wed Oct 28 00:35:32 2009 +0000 +++ b/libpurple/protocols/msn/notification.c Fri Oct 30 01:32:28 2009 +0000 @@ -1068,7 +1068,17 @@ /* Where'd this come from? */ return; - if (cmd->param_count == 7) { + if (cmd->param_count == 8) { + /* Yahoo! Buddy, looks like */ + networkid = atoi(cmd->params[3]); + friendly = g_strdup(purple_url_decode(cmd->params[4])); + clientid = strtoul(cmd->params[5], NULL, 10); + + /* cmd->params[7] seems to be a URL to a Yahoo! icon: + https://sec.yimg.com/i/us/nt/b/purpley.1.0.png + ... and it's purple, HAH! + */ + } else if (cmd->param_count == 7) { /* MSNP14+ with Display Picture object */ networkid = atoi(cmd->params[3]); friendly = g_strdup(purple_url_decode(cmd->params[4]));