Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 3783:62f1fd706de6
[gaim-migrate @ 3923]
I really really lose.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 22 Oct 2002 00:49:50 +0000 |
parents | a3aca202aa04 |
children | daf2cec08eac |
comparison
equal
deleted
inserted
replaced
3782:a3aca202aa04 | 3783:62f1fd706de6 |
---|---|
4478 } | 4478 } |
4479 | 4479 |
4480 static void oscar_set_permit_deny(struct gaim_connection *gc) { | 4480 static void oscar_set_permit_deny(struct gaim_connection *gc) { |
4481 struct oscar_data *od = (struct oscar_data *)gc->proto_data; | 4481 struct oscar_data *od = (struct oscar_data *)gc->proto_data; |
4482 if (od->icq) { | 4482 if (od->icq) { |
4483 GSList *list; | 4483 GSList *list, *g; |
4484 char buf[MAXMSGLEN]; | 4484 char buf[MAXMSGLEN]; |
4485 int at; | 4485 int at; |
4486 | 4486 |
4487 switch(gc->permdeny) { | 4487 switch(gc->permdeny) { |
4488 case 1: | 4488 case 1: |
4508 list = list->next; | 4508 list = list->next; |
4509 } | 4509 } |
4510 aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_DENYADD, buf); | 4510 aim_bos_changevisibility(od->sess, od->conn, AIM_VISIBILITYCHANGE_DENYADD, buf); |
4511 break; | 4511 break; |
4512 case 5: | 4512 case 5: |
4513 GList *g = gc->groups; | 4513 g = gc->groups; |
4514 at = 0; | 4514 at = 0; |
4515 while (g) { | 4515 while (g) { |
4516 list = ((struct group *)g->data)->members; | 4516 list = ((struct group *)g->data)->members; |
4517 while (list) { | 4517 while (list) { |
4518 at += g_snprintf(buf + at, sizeof(buf) - at, "%s&", (char *)list->data); | 4518 at += g_snprintf(buf + at, sizeof(buf) - at, "%s&", (char *)list->data); |