Mercurial > pidgin.yaz
comparison src/gaimrc.c @ 3205:332df87cf3d6
[gaim-migrate @ 3222]
Self-aliasing from the account editor. You can edit how your screenname
shows up in sent messages without having yourself on your list. This is
strictly client-side only--has no affect on what your buddies see.
I'm thinking it might not be a bad idea to add the alias somewhere in the
various select-account menus and lists. This could potentially fix the
can't-tell-what-IRC-account-I'm-joining-channels-in problem, but I'm not
sure the best way to do it right now--I'll do it tommorow. IM me if you
have good ideas.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 04 May 2002 08:21:31 +0000 |
parents | a5f759e43fdd |
children | 6e876221ec82 |
comparison
equal
deleted
inserted
replaced
3204:20769d05df16 | 3205:332df87cf3d6 |
---|---|
532 if (strcmp(p->option, "iconfile")) | 532 if (strcmp(p->option, "iconfile")) |
533 return u; | 533 return u; |
534 | 534 |
535 g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", p->value[0]); | 535 g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", p->value[0]); |
536 | 536 |
537 if (!fgets(buf, sizeof(buf), f)) | |
538 return u; | |
539 | |
540 if (!strcmp(buf, "\t}")) | |
541 return u; | |
542 | |
543 p = parse_line(buf); | |
544 | |
545 if (strcmp(p->option, "alias")) | |
546 return u; | |
547 | |
548 g_snprintf(u->alias, sizeof(u->alias), "%s", p->value[0]); | |
549 | |
537 return u; | 550 return u; |
538 | 551 |
539 } | 552 } |
540 | 553 |
541 static void gaimrc_write_user(FILE *f, struct aim_user *u) | 554 static void gaimrc_write_user(FILE *f, struct aim_user *u) |
568 fprintf(f, "\t\tproto_opts"); | 581 fprintf(f, "\t\tproto_opts"); |
569 for (i = 0; i < 7; i++) | 582 for (i = 0; i < 7; i++) |
570 fprintf(f, " { %s }", u->proto_opt[i]); | 583 fprintf(f, " { %s }", u->proto_opt[i]); |
571 fprintf(f, "\n"); | 584 fprintf(f, "\n"); |
572 fprintf(f, "\t\ticonfile { %s }\n", u->iconfile); | 585 fprintf(f, "\t\ticonfile { %s }\n", u->iconfile); |
573 } | 586 fprintf(f, "\t\talias { %s }\n", u->alias); |
574 | 587 } |
575 | 588 |
576 static void gaimrc_read_users(FILE *f) | 589 static void gaimrc_read_users(FILE *f) |
577 { | 590 { |
578 char buf[2048]; | 591 char buf[2048]; |
579 struct aim_user *u; | 592 struct aim_user *u; |