comparison src/prpl.c @ 13334:99d081c638f6

[gaim-migrate @ 15704] Don't try to set the status if the account is disconnected committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 27 Feb 2006 15:35:17 +0000
parents e9cf00a30b49
children 1ca4a579eb57
comparison
equal deleted inserted replaced
13333:b04212d6b115 13334:99d081c638f6
306 if (prpl == NULL) 306 if (prpl == NULL)
307 return; 307 return;
308 308
309 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); 309 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl);
310 310
311 if (prpl_info->set_status != NULL) 311 if (!gaim_account_is_disconnected(account) && prpl_info->set_status != NULL)
312 { 312 {
313 prpl_info->set_status(account, new_status); 313 prpl_info->set_status(account, new_status);
314 } 314 }
315 315
316 if (!gaim_status_is_online(new_status)) 316 if (!gaim_status_is_online(new_status))