| 622 if(state) { |
622 if(state) { |
| 623 status_id = gaim_status_get_id(status); |
623 status_id = gaim_status_get_id(status); |
| 624 *state = jabber_buddy_status_id_get_state(status_id); |
624 *state = jabber_buddy_status_id_get_state(status_id); |
| 625 } |
625 } |
| 626 |
626 |
| 627 if(msg) |
627 if(msg) { |
| 628 *msg = gaim_status_get_attr_string(status, "message"); |
628 *msg = gaim_status_get_attr_string(status, "message"); |
| 629 |
629 |
| 630 /* if the message is blank, then there really isn't a message */ |
630 /* if the message is blank, then there really isn't a message */ |
| 631 if(*msg && !**msg) |
631 if(*msg && !**msg) |
| 632 *msg = NULL; |
632 *msg = NULL; |
| |
633 } |
| 633 |
634 |
| 634 if(priority) |
635 if(priority) |
| 635 *priority = gaim_status_get_attr_int(status, "priority"); |
636 *priority = gaim_status_get_attr_int(status, "priority"); |
| 636 } |
637 } |
| 637 } |
638 } |