diff libpurple/protocols/myspace/myspace.c @ 32708:10e5000326a5

Convert code to use the purple_account accessor functions.
author andrew.victor@mxit.com
date Sat, 01 Oct 2011 21:04:35 +0000
parents f75041cb3fec
children 2ec94166be43
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Sat Oct 01 18:21:43 2011 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Sat Oct 01 21:04:35 2011 +0000
@@ -2543,7 +2543,7 @@
 
 	/* If we should be idle, set that status. Time is irrelevant here. */
 	if (purple_presence_is_idle(pres) && status_code != MSIM_STATUS_CODE_OFFLINE_OR_HIDDEN)
-		msim_set_idle(account->gc, 1);
+		msim_set_idle(purple_account_get_connection(account), 1);
 }
 
 /**
@@ -2864,7 +2864,7 @@
 		const char *username;
 
 		/* If the account does not exist, we can't look up the user. */
-		if (!account || !account->gc)
+		if (!account || !purple_account_get_connection(account))
 			return str;
 
 		id = atol(str);