# HG changeset patch # User Mark Doliner # Date 1244065565 0 # Node ID 1d2b813faca7f1a37cf69ed1bbbf39317d58fa6f # Parent e6f8354c70c66bcf7caac14b9ccfac4375c08743 Stop exiting early from this function. I don't believe it harms anything to continue executing even if body is null, and if we exit early then we don't call purple_connection_set_state(session->gc, PURPLE_CONNECTED) and the account never gets set to "connected." This seems to affect any MySpace account that has an empty buddy list. I'm pretty sure this used to work fine, so I'm assuming MySpace tweaked the data sent to the client when the user has an empty buddy list. diff -r e6f8354c70c6 -r 1d2b813faca7 libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Wed Jun 03 18:27:47 2009 +0000 +++ b/libpurple/protocols/myspace/myspace.c Wed Jun 03 21:46:05 2009 +0000 @@ -1118,10 +1118,6 @@ guint buddy_count; body = msim_msg_get_dictionary(reply, "body"); - if (!body) { - /* No friends. Not an error. */ - return; - } buddy_count = 0;