comparison src/server.c @ 280:e606585a38bd

[gaim-migrate @ 290] I can't even remember what i did. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 30 May 2000 06:36:32 +0000
parents 9e6fc62490cd
children 7b06ba09ffe2
comparison
equal deleted inserted replaced
279:501e09c51cbc 280:e606585a38bd
342 342
343 343
344 344
345 void serv_set_permit_deny() 345 void serv_set_permit_deny()
346 { 346 {
347 #ifndef USE_OSCAR
348 char buf[MSG_LEN]; 347 char buf[MSG_LEN];
349 int at; 348 int at;
350 GList *list; 349 GList *list;
351 350
351 #ifndef USE_OSCAR
352 /* FIXME! We flash here. */ 352 /* FIXME! We flash here. */
353 if (permdeny == 1 || permdeny == 3) { 353 if (permdeny == 1 || permdeny == 3) {
354 g_snprintf(buf, sizeof(buf), "toc_add_permit"); 354 g_snprintf(buf, sizeof(buf), "toc_add_permit");
355 sflap_send(buf, -1, TYPE_DATA); 355 sflap_send(buf, -1, TYPE_DATA);
356 } else { 356 } else {
377 buf[at] = 0; 377 buf[at] = 0;
378 sflap_send(buf, -1, TYPE_DATA); 378 sflap_send(buf, -1, TYPE_DATA);
379 #else 379 #else
380 /* oscar requires us to do everyone at once (?) */ 380 /* oscar requires us to do everyone at once (?) */
381 /* I think this code is OK now. */ 381 /* I think this code is OK now. */
382 /* FIXME : I changed my mind 382 list = deny; at = 0;
383 if (!(permdeny == 1 || permdeny == 4)) { 383 if (list == NULL) return;
384 list = permit; at = 0; 384 while (list) {
385 while (list) { 385 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", list->data);
386 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", list->data); 386 list = list->next;
387 list = list->next; 387 }
388 } 388 aim_bos_changevisibility(gaim_sess, gaim_conn,
389 aim_bos_changevisibility(gaim_sess, gaim_conn,
390 AIM_VISIBILITYCHANGE_PERMITADD, buf);
391 } else {
392 list = deny; at = 0;
393 if (list == NULL) return;
394 while (list) {
395 at += g_snprintf(&buf[at], sizeof(buf) - at, "%s&", list->data);
396 list = list->next;
397 }
398 aim_bos_changevisibility(gaim_sess, gaim_conn,
399 AIM_VISIBILITYCHANGE_DENYADD, buf); 389 AIM_VISIBILITYCHANGE_DENYADD, buf);
400 }
401 */
402 #endif 390 #endif
403 } 391 }
404 392
405 void serv_set_idle(int time) 393 void serv_set_idle(int time)
406 { 394 {