equal
deleted
inserted
replaced
2196 roster_elt = roster_find(barejid, jidsearch, |
2196 roster_elt = roster_find(barejid, jidsearch, |
2197 ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM); |
2197 ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM); |
2198 // Create it if necessary |
2198 // Create it if necessary |
2199 if (!roster_elt) |
2199 if (!roster_elt) |
2200 roster_elt = roster_add_user(barejid, NULL, NULL, ROSTER_TYPE_USER, |
2200 roster_elt = roster_add_user(barejid, NULL, NULL, ROSTER_TYPE_USER, |
2201 sub_none); |
2201 sub_none, -1); |
2202 // Set a lock to see it in the buddylist |
2202 // Set a lock to see it in the buddylist |
2203 buddy_setflags(BUDDATA(roster_elt), ROSTER_FLAG_LOCK, TRUE); |
2203 buddy_setflags(BUDDATA(roster_elt), ROSTER_FLAG_LOCK, TRUE); |
2204 buddylist_build(); |
2204 buddylist_build(); |
2205 // Jump to the buddy |
2205 // Jump to the buddy |
2206 set_current_buddy(buddy_search_jid(barejid)); |
2206 set_current_buddy(buddy_search_jid(barejid)); |