Mercurial > pidgin.yaz
comparison src/server.c @ 3136:1bd472b7f7a2
[gaim-migrate @ 3151]
Jabber sync. fixen
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 12 Apr 2002 02:15:24 +0000 |
parents | f69328f7a603 |
children | e102d1629c71 |
comparison
equal
deleted
inserted
replaced
3135:1838f48a5f72 | 3136:1bd472b7f7a2 |
---|---|
279 gc->prpl->remove_buddies(gc, g, group); | 279 gc->prpl->remove_buddies(gc, g, group); |
280 else { | 280 else { |
281 while (g) { | 281 while (g) { |
282 serv_remove_buddy(gc, g->data, group); | 282 serv_remove_buddy(gc, g->data, group); |
283 g = g->next; | 283 g = g->next; |
284 } | |
285 } | |
286 } | |
287 | |
288 /* | |
289 * Set buddy's alias on server roster/list | |
290 */ | |
291 void serv_alias_buddy(struct buddy *b) | |
292 { | |
293 if(b && b->gc && b->gc->prpl && b->gc->prpl->alias_buddy) { | |
294 b->gc->prpl->alias_buddy(b->gc, b->name); | |
295 } | |
296 } | |
297 | |
298 /* | |
299 * Move a buddy from one group to another on server. | |
300 * | |
301 * Note: For now we'll not deal with changing gc's at the same time, but | |
302 * it should be possible. Probably needs to be done, someday. | |
303 */ | |
304 void serv_move_buddy(struct buddy *b, struct group *og, struct group *ng) | |
305 { | |
306 if(b && b->gc && og && og->gc && ng && ng->gc) { | |
307 /* | |
308 * If there are no connection changes... | |
309 */ | |
310 if(b->gc == og->gc && b->gc == ng->gc && ng->gc == og->gc) { | |
311 if(b->gc->prpl && b->gc->prpl->group_buddy) { | |
312 b->gc->prpl->group_buddy(b->gc, b->name, og->name, ng->name); | |
313 } | |
284 } | 314 } |
285 } | 315 } |
286 } | 316 } |
287 | 317 |
288 void serv_add_permit(struct gaim_connection *g, char *name) | 318 void serv_add_permit(struct gaim_connection *g, char *name) |