changeset 1609:b4473be6fcc5

[gaim-migrate @ 1619] i'm a moron committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 17 Mar 2001 08:36:37 +0000
parents e19a2cb4190c
children f018f0faddda
files src/util.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Sat Mar 17 04:41:38 2001 +0000
+++ b/src/util.c	Sat Mar 17 08:36:37 2001 +0000
@@ -1359,9 +1359,12 @@
 	if ((logging_options & why) != why)
 		return;
 
-	if (logging_options & OPT_LOG_INDIVIDUAL)
-		fd = open_system_log_file(who->name);
-	else
+	if (logging_options & OPT_LOG_INDIVIDUAL) {
+		if (why & OPT_LOG_MY_SIGNON)
+			fd = open_system_log_file(gc ? gc->username : NULL);
+		else
+			fd = open_system_log_file(who->name);
+	} else
 		fd = open_system_log_file(NULL);
 
 	if (!fd)