[Pidgin] #9814: Cannot add OCS PIC user to my Yahoo Contact List

Pidgin trac at pidgin.im
Mon Oct 19 16:29:23 EDT 2009


#9814: Cannot add OCS PIC user to my Yahoo Contact List
------------------------+---------------------------------------------------
 Reporter:  dlevine278  |        Owner:  sulabh.dev         
     Type:  patch       |       Status:  closed             
Milestone:  2.6.4       |    Component:  Yahoo!/Yahoo! JAPAN
  Version:  2.5.8       |   Resolution:  fixed              
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by dlevine278):

 I'll have to send you a packet capture because I'm actually seeing 241 as
 being sent when adding an OCS buddy...(also, I can make available a number
 of Y! buddies on OCS available for testing).  We are not using pidgin or
 finch but calling libPurple directly.


 Here's the code to our function which adds a buddy....


 /* Function: AddBuddy
 **
 ** Adds a buddy from the buddy list *AND* the servers list
 */
 int
 AddBuddy(PurpleAccount *account, const char *groupname, const char
 *buddyname)
 {
   PurpleGroup *group = NULL;
   BUDDY_TRACE(__FUNCTION__);
   if ((group = purple_find_group(groupname)) == NULL)
     {
       return GROUP_DNE;
     }
   else
     {
       PurpleBuddy *buddy  = purple_buddy_new(account, buddyname,
 buddyname);
       purple_blist_add_buddy(buddy, NULL, group, NULL);
       purple_account_add_buddy(account, buddy);
       if (DEBUG_ISSET(DEBUG_BUDDY))
         {
         fprintf(debug_fp, "group Size = %d\r\n", group->totalsize);
         fflush(debug_fp);
         }
       return 0;
     }
 }

-- 
Ticket URL: <http://developer.pidgin.im/ticket/9814#comment:25>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list