# HG changeset patch # User Richard Laager # Date 1142320543 0 # Node ID 9710aeb12c0d9782f92cba1654b486954f2b8f30 # Parent 702107dd58f19825e9add3b2474cb3ea551d3750 [gaim-migrate @ 15884] SF Patch #1446733 from Sadrul 'System logs currently have header/title "Conversation with ...". I think "System log for ..." is a better one.' committer: Tailor Script diff -r 702107dd58f1 -r 9710aeb12c0d src/log.c --- a/src/log.c Tue Mar 14 06:59:14 2006 +0000 +++ b/src/log.c Tue Mar 14 07:15:43 2006 +0000 @@ -1047,12 +1047,16 @@ written += fprintf(data->file, ""); written += fprintf(data->file, ""); written += fprintf(data->file, ""); - written += fprintf(data->file, "Conversation with %s at %s on %s (%s)", - log->name, date, gaim_account_get_username(log->account), prpl); + if (log->type == GAIM_LOG_SYSTEM) + written += fprintf(data->file, "System log for account %s (%s) connected at %s", + gaim_account_get_username(log->account), prpl, date); + else + written += fprintf(data->file, "Conversation with %s at %s on %s (%s)", + log->name, date, gaim_account_get_username(log->account), prpl); + + written += fprintf(data->file, header); written += fprintf(data->file, ""); - written += fprintf(data->file, - "

Conversation with %s at %s on %s (%s)

\n", - log->name, date, gaim_account_get_username(log->account), prpl); + written += fprintf(data->file, "

%s

\n", header); } /* if we can't write to the file, give up before we hurt ourselves */ @@ -1184,9 +1188,14 @@ if(!data->file) return 0; - written += fprintf(data->file, "Conversation with %s at %s on %s (%s)\n", - log->name, gaim_date_format_full(localtime(&log->time)), - gaim_account_get_username(log->account), prpl); + if (log->type == GAIM_LOG_SYSTEM) + written += fprintf(data->file, "System log for account %s (%s) connected at %s\n", + gaim_account_get_username(log->account), prpl, + gaim_date_format_full(localtime(&log->time))); + else + written += fprintf(data->file, "Conversation with %s at %s on %s (%s)\n", + log->name, gaim_date_format_full(localtime(&log->time)), + gaim_account_get_username(log->account), prpl); } /* if we can't write to the file, give up before we hurt ourselves */