comparison src/multi.c @ 2458:8208e2016d9b

[gaim-migrate @ 2471] small bug committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 09 Oct 2001 18:12:41 +0000
parents adb5106341de
children 108b3eab22aa
comparison
equal deleted inserted replaced
2457:e6b9246b33fd 2458:8208e2016d9b
610 u = g_new0(struct mod_user, 1); 610 u = g_new0(struct mod_user, 1);
611 u->user = a; 611 u->user = a;
612 mod_users = g_slist_append(mod_users, u); 612 mod_users = g_slist_append(mod_users, u);
613 613
614 if (a) { 614 if (a) {
615 int i;
615 u->options = a->options; 616 u->options = a->options;
616 if (find_prpl(a->protocol)) 617 if (find_prpl(a->protocol))
617 u->protocol = a->protocol; 618 u->protocol = a->protocol;
618 else if (protocols) 619 else if (protocols)
619 u->protocol = ((struct prpl *)protocols->data)->protocol; 620 u->protocol = ((struct prpl *)protocols->data)->protocol;
620 else 621 else
621 u->protocol = -1; 622 u->protocol = -1;
622 g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", a->iconfile); 623 g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", a->iconfile);
624 for (i = 0; i < 7; i++)
625 g_snprintf(u->proto_opt[i], sizeof(u->proto_opt[i]), "%s",
626 a->proto_opt[i]);
623 } else { 627 } else {
624 u->options = OPT_USR_REM_PASS; 628 u->options = OPT_USR_REM_PASS;
625 if (find_prpl(DEFAULT_PROTO)) 629 if (find_prpl(DEFAULT_PROTO))
626 u->protocol = DEFAULT_PROTO; 630 u->protocol = DEFAULT_PROTO;
627 else if (protocols) 631 else if (protocols)