| 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)) |