Mercurial > hg
comparison mcabber/src/screen.c @ 603:9516db839e08
Store subscription data
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 15 Dec 2005 12:52:37 +0100 |
parents | 7b20c27cae48 |
children | b243d3b3ff1b |
comparison
equal
deleted
inserted
replaced
602:7b20c27cae48 | 603:9516db839e08 |
---|---|
976 // Look for an existing buddy | 976 // Look for an existing buddy |
977 roster_elt = roster_find(barejid, jidsearch, | 977 roster_elt = roster_find(barejid, jidsearch, |
978 ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM); | 978 ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM); |
979 // Create it if necessary | 979 // Create it if necessary |
980 if (!roster_elt) | 980 if (!roster_elt) |
981 roster_elt = roster_add_user(barejid, NULL, NULL, ROSTER_TYPE_USER); | 981 roster_elt = roster_add_user(barejid, NULL, NULL, ROSTER_TYPE_USER, |
982 sub_none); | |
982 // Set a lock to see it in the buddylist | 983 // Set a lock to see it in the buddylist |
983 buddy_setflags(BUDDATA(roster_elt), ROSTER_FLAG_LOCK, TRUE); | 984 buddy_setflags(BUDDATA(roster_elt), ROSTER_FLAG_LOCK, TRUE); |
984 buddylist_build(); | 985 buddylist_build(); |
985 // Jump to the buddy | 986 // Jump to the buddy |
986 set_current_buddy(buddy_search_jid(barejid)); | 987 set_current_buddy(buddy_search_jid(barejid)); |