diff src/aim.c @ 3478:3da42b64304e

[gaim-migrate @ 3532] This isn't complete--but it's cool. gaim-remote is now built and installed. Eventually it will do lots of cool stuff--right now it just handles aim:// URI's. Try it out... when connected to OSCAR run: gaim-remote uri "aim://goim?screenname=seanegn&message=Good+job+Sean" Also, I made it so that if you're already running a Gaim session, and start a new one, it won't auto-login and disconnect all your accounts from the first instance. Useful if you accidentally hit the wrong button or something. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 30 Aug 2002 16:09:22 +0000
parents db5dd21aa345
children 443b3311871d
line wrap: on
line diff
--- a/src/aim.c	Fri Aug 30 03:39:00 2002 +0000
+++ b/src/aim.c	Fri Aug 30 16:09:22 2002 +0000
@@ -504,7 +504,7 @@
 		debug_printf("Failed to load icon from %s/pixmaps/gaim.png\n",DATADIR);
 	}
 
-	g_snprintf(name, sizeof(name), "%s/gaim_%s.%d", g_get_tmp_dir(), g_get_user_name(), getpid());
+	g_snprintf(name, sizeof(name), "%s/gaim_%s.%d", g_get_tmp_dir(), g_get_user_name(), gaim_session);
 
 	UI_fd = open_socket(name);
 	if (UI_fd < 0)
@@ -770,7 +770,7 @@
 		}
 	}
 
-	if (!opt_acct && !opt_nologin)
+	if (!opt_acct && !opt_nologin && gaim_session == 0)
 		auto_login();
 
 	if (opt_acct) {