Mercurial > pidgin
comparison libpurple/protocols/myspace/myspace.c @ 25419:4278d13b5471
Wait to set the account online until after we've fetched our buddy list.
I think it's a good idea for protocols to do this, in general.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 04 Feb 2009 18:59:11 +0000 |
parents | b15168f2b7ee |
children | c02da09b567f 27e6ab4ff554 9fcff08ce726 |
comparison
equal
deleted
inserted
replaced
25418:b0c75121cf66 | 25419:4278d13b5471 |
---|---|
1144 case MSIM_CONTACT_LIST_IMPORT_TOP_FRIENDS: | 1144 case MSIM_CONTACT_LIST_IMPORT_TOP_FRIENDS: |
1145 /* TODO */ | 1145 /* TODO */ |
1146 break; | 1146 break; |
1147 | 1147 |
1148 case MSIM_CONTACT_LIST_INITIAL_FRIENDS: | 1148 case MSIM_CONTACT_LIST_INITIAL_FRIENDS: |
1149 /* Nothing */ | 1149 /* The session is now set up, ready to be connected. This emits the |
1150 * signedOn signal, so clients can now do anything with msimprpl, and | |
1151 * we're ready for it (session key, userid, username all setup). */ | |
1152 purple_connection_update_progress(session->gc, _("Connected"), 3, 4); | |
1153 purple_connection_set_state(session->gc, PURPLE_CONNECTED); | |
1150 break; | 1154 break; |
1151 } | 1155 } |
1152 | 1156 |
1153 msim_msg_free(body); | 1157 msim_msg_free(body); |
1154 } | 1158 } |
1182 | 1186 |
1183 g_return_val_if_fail(MSIM_SESSION_VALID(session), FALSE); | 1187 g_return_val_if_fail(MSIM_SESSION_VALID(session), FALSE); |
1184 | 1188 |
1185 /* Set display name to username (otherwise will show email address) */ | 1189 /* Set display name to username (otherwise will show email address) */ |
1186 purple_connection_set_display_name(session->gc, session->username); | 1190 purple_connection_set_display_name(session->gc, session->username); |
1187 | |
1188 /* The session is now set up, ready to be connected. This emits the | |
1189 * signedOn signal, so clients can now do anything with msimprpl, and | |
1190 * we're ready for it (session key, userid, username all setup). */ | |
1191 purple_connection_update_progress(session->gc, _("Connected"), 3, 4); | |
1192 purple_connection_set_state(session->gc, PURPLE_CONNECTED); | |
1193 | 1191 |
1194 body = msim_msg_new( | 1192 body = msim_msg_new( |
1195 "UserID", MSIM_TYPE_INTEGER, session->userid, | 1193 "UserID", MSIM_TYPE_INTEGER, session->userid, |
1196 NULL); | 1194 NULL); |
1197 | 1195 |