equal
deleted
inserted
replaced
593 |
593 |
594 roster_usr = (roster*)sl_user->data; |
594 roster_usr = (roster*)sl_user->data; |
595 return roster_usr->type; |
595 return roster_usr->type; |
596 } |
596 } |
597 |
597 |
|
598 // roster_unsubscribed() |
|
599 // We have lost buddy's presence updates; this function clears the status |
|
600 // message, sets the buddy offline and frees the resources |
|
601 void roster_unsubscribed(const char *jid) |
|
602 { |
|
603 GSList *sl_user; |
|
604 roster *roster_usr; |
|
605 |
|
606 sl_user = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT); |
|
607 if (sl_user == NULL) |
|
608 return; |
|
609 |
|
610 roster_usr = (roster*)sl_user->data; |
|
611 free_all_resources(&roster_usr->resource); |
|
612 } |
|
613 |
598 |
614 |
599 /* ### BuddyList functions ### */ |
615 /* ### BuddyList functions ### */ |
600 |
616 |
601 // buddylist_set_hide_offline_buddies(hide) |
617 // buddylist_set_hide_offline_buddies(hide) |
602 // "hide" values: 1=hide 0=show_all -1=invert |
618 // "hide" values: 1=hide 0=show_all -1=invert |