pidgin: 6dc76cda: Fix libpurple compile when PURPLE_HIDE_S...

qulogic at pidgin.im qulogic at pidgin.im
Sun Mar 20 20:32:41 EDT 2011


----------------------------------------------------------------------
Revision: 6dc76cda24f54c24299213f17773c998c619fb6d
Parent:   7047ca62e877f94623bcf54104897c1747a3338f
Author:   qulogic at pidgin.im
Date:     03/20/11 15:29:31
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6dc76cda24f54c24299213f17773c998c619fb6d

Changelog: 

Fix libpurple compile when PURPLE_HIDE_STRUCTS is enabled.

Changes against parent 7047ca62e877f94623bcf54104897c1747a3338f

  patched  libpurple/protocols/oscar/oscar.c

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c	1832433d5ba5e7cffb9ef3f207f2af3281d3d32e
+++ libpurple/protocols/oscar/oscar.c	a2c1f4372e8d824a0c8b530a437aab438526f3a6
@@ -5060,16 +5060,22 @@ static void oscar_get_icqxstatusmsg(Purp
 {
 	PurpleBuddy *buddy;
 	PurpleConnection *gc;
+	OscarData *od;
 	PurpleAccount *account;
+	const char *bname;
 
 	g_return_if_fail(PURPLE_BLIST_NODE_IS_BUDDY(node));
 
 	buddy = (PurpleBuddy *)node;
-	gc = purple_account_get_connection(buddy->account);
-	account = purple_connection_get_account(gc);
-	purple_debug_info("oscar", "Manual X-Status Get From %s to %s:\n", purple_buddy_get_name(buddy), account->username);
+	bname = purple_buddy_get_name(buddy);
 
-	icq_im_xstatus_request(gc->proto_data, purple_buddy_get_name(buddy));
+	account = purple_buddy_get_account(buddy);
+	gc = purple_account_get_connection(account);
+	od = purple_connection_get_protocol_data(gc);
+
+	purple_debug_info("oscar", "Manual X-Status Get From %s to %s:\n", bname, purple_account_get_username(account));
+
+	icq_im_xstatus_request(od, bname);
 }
 
 static void


More information about the Commits mailing list