equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * roster.c -- Local roster implementation |
2 * roster.c -- Local roster implementation |
3 * |
3 * |
4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> |
4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> |
5 * |
5 * |
6 * This program is free software; you can redistribute it and/or modify |
6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by |
7 * it under the terms of the GNU General Public License as published by |
8 * the Free Software Foundation; either version 2 of the License, or (at |
8 * the Free Software Foundation; either version 2 of the License, or (at |
537 if (roster_usr->type & ROSTER_TYPE_GROUP) return; |
537 if (roster_usr->type & ROSTER_TYPE_GROUP) return; |
538 |
538 |
539 // Remove the buddy from current group |
539 // Remove the buddy from current group |
540 sl_group = &((roster*)((GSList*)roster_usr->list)->data)->list; |
540 sl_group = &((roster*)((GSList*)roster_usr->list)->data)->list; |
541 *sl_group = g_slist_remove(*sl_group, rosterdata); |
541 *sl_group = g_slist_remove(*sl_group, rosterdata); |
542 |
542 |
543 // Add the buddy to its new group; actually we "clone" this buddy... |
543 // Add the buddy to its new group; actually we "clone" this buddy... |
544 sl_clone = roster_add_user(roster_usr->jid, roster_usr->name, |
544 sl_clone = roster_add_user(roster_usr->jid, roster_usr->name, |
545 newgroupname, roster_usr->type); |
545 newgroupname, roster_usr->type); |
546 roster_clone = (roster*)sl_clone->data; |
546 roster_clone = (roster*)sl_clone->data; |
547 roster_clone->status = roster_usr->status; |
547 roster_clone->status = roster_usr->status; |