| 557 PurpleAccount *account = purple_account_presence_get_account( |
557 PurpleAccount *account = purple_account_presence_get_account( |
| 558 PURPLE_ACCOUNT_PRESENCE(presence)); |
558 PURPLE_ACCOUNT_PRESENCE(presence)); |
| 559 PurpleAccountUiOps *ops = purple_accounts_get_ui_ops(); |
559 PurpleAccountUiOps *ops = purple_accounts_get_ui_ops(); |
| 560 |
560 |
| 561 if (purple_account_get_enabled(account, purple_core_get_ui())) |
561 if (purple_account_get_enabled(account, purple_core_get_ui())) |
| 562 purple_prpl_change_account_status(account, old_status, new_status); |
562 purple_protocol_change_account_status(account, old_status, new_status); |
| 563 |
563 |
| 564 if (ops != NULL && ops->status_changed != NULL) |
564 if (ops != NULL && ops->status_changed != NULL) |
| 565 { |
565 { |
| 566 ops->status_changed(account, new_status); |
566 ops->status_changed(account, new_status); |
| 567 } |
567 } |