Mercurial > pidgin
comparison src/server.c @ 2334:b53cd5b63a99
[gaim-migrate @ 2347]
i feel like everyone's watching me
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Fri, 21 Sep 2001 00:14:12 +0000 |
| parents | bd9d403fb15b |
| children | a49e8f1afbc4 |
comparison
equal
deleted
inserted
replaced
| 2333:de907b3cf529 | 2334:b53cd5b63a99 |
|---|---|
| 232 { | 232 { |
| 233 if (g->prpl && g->prpl->remove_buddy) | 233 if (g->prpl && g->prpl->remove_buddy) |
| 234 (*g->prpl->remove_buddy)(g, name); | 234 (*g->prpl->remove_buddy)(g, name); |
| 235 } | 235 } |
| 236 | 236 |
| 237 void serv_remove_buddies(struct gaim_connection *gc, GList *g) | |
| 238 { | |
| 239 if (!gc->prpl) | |
| 240 return; /* how the hell did that happen? */ | |
| 241 if (gc->prpl->remove_buddies) | |
| 242 (*gc->prpl->remove_buddies)(gc, g); | |
| 243 else { | |
| 244 while (g) { | |
| 245 serv_remove_buddy(gc, g->data); | |
| 246 g = g->next; | |
| 247 } | |
| 248 } | |
| 249 } | |
| 250 | |
| 237 void serv_add_permit(struct gaim_connection *g, char *name) | 251 void serv_add_permit(struct gaim_connection *g, char *name) |
| 238 { | 252 { |
| 239 if (g->prpl && g->prpl->add_permit) | 253 if (g->prpl && g->prpl->add_permit) |
| 240 (*g->prpl->add_permit)(g, name); | 254 (*g->prpl->add_permit)(g, name); |
| 241 } | 255 } |
