diff 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
line wrap: on
line diff
--- a/src/gaimrc.c	Sat May 04 04:20:42 2002 +0000
+++ b/src/gaimrc.c	Sat May 04 08:21:31 2002 +0000
@@ -534,6 +534,19 @@
 
 	g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", p->value[0]);
 
+	if (!fgets(buf, sizeof(buf), f))
+		return u;
+
+	if (!strcmp(buf, "\t}"))
+		return u;
+
+	p = parse_line(buf);
+
+	if (strcmp(p->option, "alias"))
+		return u;
+
+	g_snprintf(u->alias, sizeof(u->alias), "%s", p->value[0]);
+
 	return u;
 
 }
@@ -570,9 +583,9 @@
 		fprintf(f, " { %s }", u->proto_opt[i]);
 	fprintf(f, "\n");
 	fprintf(f, "\t\ticonfile { %s }\n", u->iconfile);
+	fprintf(f, "\t\talias { %s }\n", u->alias);
 }
 
-
 static void gaimrc_read_users(FILE *f)
 {
 	char buf[2048];