pidgin: a6a24344: Parse online presence from yahoo buddies...

sadrul at pidgin.im sadrul at pidgin.im
Thu Oct 29 21:46:11 EDT 2009


-----------------------------------------------------------------
Revision: a6a24344139c15a41f921484531dfbdef99247c7
Ancestor: 66bebc1164ed1151d970f4bc4e634005b2e28b0a
Author: sadrul at pidgin.im
Date: 2009-10-30T01:32:28
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a6a24344139c15a41f921484531dfbdef99247c7

Modified files:
        libpurple/protocols/msn/notification.c

ChangeLog: 

Parse online presence from yahoo buddies after going online on MSN.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	80512791a9fc80131a38d0dc385ce13db370c8fb
+++ libpurple/protocols/msn/notification.c	2a5f4e87677d202d7ea5cc6fbe2b8eb3361dff55
@@ -1068,7 +1068,17 @@ iln_cmd(MsnCmdProc *cmdproc, MsnCommand 
 		/* 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]));


More information about the Commits mailing list