Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 562:7fc678ac3bc6
Cosmetic changes
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 02 Dec 2005 23:10:34 +0100 |
parents | 265c50238a48 |
children | b0f1b127bfb6 |
comparison
equal
deleted
inserted
replaced
561:a2eec8294093 | 562:7fc678ac3bc6 |
---|---|
241 return roster_find(name, namesearch, ROSTER_TYPE_GROUP); | 241 return roster_find(name, namesearch, ROSTER_TYPE_GROUP); |
242 } | 242 } |
243 | 243 |
244 // Returns a pointer to the new user, or existing user with that name | 244 // Returns a pointer to the new user, or existing user with that name |
245 GSList *roster_add_user(const char *jid, const char *name, const char *group, | 245 GSList *roster_add_user(const char *jid, const char *name, const char *group, |
246 guint type) | 246 guint type) |
247 { | 247 { |
248 roster *roster_usr; | 248 roster *roster_usr; |
249 roster *my_group; | 249 roster *my_group; |
250 GSList *slist; | 250 GSList *slist; |
251 | 251 |
709 sl_group = &((roster*)((GSList*)roster_usr->list)->data)->list; | 709 sl_group = &((roster*)((GSList*)roster_usr->list)->data)->list; |
710 *sl_group = g_slist_remove(*sl_group, rosterdata); | 710 *sl_group = g_slist_remove(*sl_group, rosterdata); |
711 | 711 |
712 // Add the buddy to its new group; actually we "clone" this buddy... | 712 // Add the buddy to its new group; actually we "clone" this buddy... |
713 sl_clone = roster_add_user(roster_usr->jid, roster_usr->name, | 713 sl_clone = roster_add_user(roster_usr->jid, roster_usr->name, |
714 newgroupname, roster_usr->type); | 714 newgroupname, roster_usr->type); |
715 roster_clone = (roster*)sl_clone->data; | 715 roster_clone = (roster*)sl_clone->data; |
716 roster_clone->subscription = roster_usr->subscription; | 716 roster_clone->subscription = roster_usr->subscription; |
717 roster_clone->flags = roster_usr->flags; | 717 roster_clone->flags = roster_usr->flags; |
718 | 718 |
719 roster_clone->resource = roster_usr->resource; | 719 roster_clone->resource = roster_usr->resource; |