changeset 31848:85412e09b61b

Fix libpurple compile when PURPLE_HIDE_STRUCTS is enabled.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 20 Mar 2011 19:29:31 +0000
parents 7c33eaed54e5
children 96e66fbe2881
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Sun Mar 20 00:08:01 2011 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Sun Mar 20 19:29:31 2011 +0000
@@ -5060,16 +5060,22 @@
 {
 	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);
-
-	icq_im_xstatus_request(gc->proto_data, purple_buddy_get_name(buddy));
+	bname = 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