Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 819:c2d7d9dd4193
New option 'block_unsubscribed'
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 22 Apr 2006 10:50:54 +0200 |
parents | 89ad7b530b3c |
children | 915a7f17474a |
comparison
equal
deleted
inserted
replaced
818:55cd45481a07 | 819:c2d7d9dd4193 |
---|---|
628 | 628 |
629 roster_usr = (roster*)sl_user->data; | 629 roster_usr = (roster*)sl_user->data; |
630 return roster_usr->type; | 630 return roster_usr->type; |
631 } | 631 } |
632 | 632 |
633 guint roster_getsubscription(const char *jid) | |
634 { | |
635 GSList *sl_user; | |
636 roster *roster_usr; | |
637 | |
638 if ((sl_user = roster_find(jid, jidsearch, 0)) == NULL) | |
639 return 0; | |
640 | |
641 roster_usr = (roster*)sl_user->data; | |
642 return roster_usr->subscription; | |
643 } | |
644 | |
633 // roster_unsubscribed() | 645 // roster_unsubscribed() |
634 // We have lost buddy's presence updates; this function clears the status | 646 // We have lost buddy's presence updates; this function clears the status |
635 // message, sets the buddy offline and frees the resources | 647 // message, sets the buddy offline and frees the resources |
636 void roster_unsubscribed(const char *jid) | 648 void roster_unsubscribed(const char *jid) |
637 { | 649 { |