comparison src/server.c @ 707:668b4d544afe

[gaim-migrate @ 717] la la la. libfaim changes, this time all of it was me. removed the permit/deny stuff, it was waaaaaay too buggy. also made it so aim_conn_kill closed the connection too. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 17 Aug 2000 08:06:23 +0000
parents 150214f1d48b
children efd72a117875
comparison
equal deleted inserted replaced
706:a9758452f3c4 707:668b4d544afe
413 buf[at] = 0; /* is this necessary? */ 413 buf[at] = 0; /* is this necessary? */
414 sflap_send(buf, -1, TYPE_DATA); 414 sflap_send(buf, -1, TYPE_DATA);
415 break; 415 break;
416 } 416 }
417 } else { 417 } else {
418 /*
418 int at; 419 int at;
419 GList *list; 420 GList *list;
420 char buf[MSG_LEN]; 421 char buf[MSG_LEN];
421 422
422 switch (permdeny) { 423 switch (permdeny) {
423 /* aim_bos_changevisibility(gaim_sess, gaim_conn, type, list) */
424 case PERMIT_ALL: 424 case PERMIT_ALL:
425 /* AIM_VISIBILITYCHANGE_DENYADD current_user */
426 aim_bos_changevisibility(gaim_sess, gaim_conn, 425 aim_bos_changevisibility(gaim_sess, gaim_conn,
427 AIM_VISIBILITYCHANGE_DENYADD, current_user->username); 426 AIM_VISIBILITYCHANGE_DENYADD, current_user->username);
428 break; 427 break;
429 case PERMIT_NONE: 428 case PERMIT_NONE:
430 /* AIM_VISIBILITY_PERMITADD current_user */
431 aim_bos_changevisibility(gaim_sess, gaim_conn, 429 aim_bos_changevisibility(gaim_sess, gaim_conn,
432 AIM_VISIBILITYCHANGE_PERMITADD, current_user->username); 430 AIM_VISIBILITYCHANGE_PERMITADD, current_user->username);
433 break; 431 break;
434 case PERMIT_SOME: 432 case PERMIT_SOME:
435 /* PERMIT <permit> */
436 /* if permit is empty this is the same as PERMIT_NONE */
437 at = g_snprintf(buf, sizeof(buf), "%s", current_user->username); 433 at = g_snprintf(buf, sizeof(buf), "%s", current_user->username);
438 list = permit; 434 list = permit;
439 while (list) { 435 while (list) {
440 at += g_snprintf(&buf[at], sizeof(buf) - at, "&"); 436 at += g_snprintf(&buf[at], sizeof(buf) - at, "&");
441 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s", list->data); 437 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s", list->data);
443 } 439 }
444 aim_bos_changevisibility(gaim_sess, gaim_conn, 440 aim_bos_changevisibility(gaim_sess, gaim_conn,
445 AIM_VISIBILITYCHANGE_PERMITADD, buf); 441 AIM_VISIBILITYCHANGE_PERMITADD, buf);
446 break; 442 break;
447 case DENY_SOME: 443 case DENY_SOME:
448 /* DENY <deny> */
449 /* if deny is empty this is the same as PERMIT_ALL */
450 if (deny) { 444 if (deny) {
451 at = 0; 445 at = 0;
452 list = deny; 446 list = deny;
453 while (list) { 447 while (list) {
454 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s", list->data); 448 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s", list->data);
464 aim_bos_changevisibility(gaim_sess, gaim_conn, 458 aim_bos_changevisibility(gaim_sess, gaim_conn,
465 AIM_VISIBILITYCHANGE_DENYADD, current_user->username); 459 AIM_VISIBILITYCHANGE_DENYADD, current_user->username);
466 } 460 }
467 break; 461 break;
468 } 462 }
463 */
469 } 464 }
470 } 465 }
471 466
472 void serv_set_idle(int time) 467 void serv_set_idle(int time)
473 { 468 {