comparison src/account.c @ 10754:8a97b59f0071

[gaim-migrate @ 12357] Some fairly clutch changes to how accounts set their statuses. This gets rid of a lot of those g_assertion warnings. My Girlfriend: Dad, why do we have so many forks? Her Dad: Well, it's like the lord said, "Go fork and multiply." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 27 Mar 2005 19:12:52 +0000
parents 3839df4f7074
children c80a609bd747
comparison
equal deleted inserted replaced
10753:b40a67d45dbb 10754:8a97b59f0071
1161 1161
1162 /* No need to actually set the status, so we just exit */ 1162 /* No need to actually set the status, so we just exit */
1163 return; 1163 return;
1164 } 1164 }
1165 1165
1166 /* TODO: Record the status in accounts.xml? */ 1166 /* Our current statuses are saved to accounts.xml */
1167 1167 schedule_accounts_save();
1168 gaim_status_set_active_with_attrs(status, active, args); 1168
1169 gaim_presence_set_status_active(gaim_account_get_presence(account), status_id, active); 1169 if (active || gaim_status_is_independent(status))
1170 gaim_status_set_active_with_attrs(status, active, args);
1170 1171
1171 /* 1172 /*
1172 * If this account should be connected, but is not, then connect. 1173 * If this account should be connected, but is not, then connect.
1173 */ 1174 */
1174 if (active && 1175 if (active &&