From: Richard L. <rl...@us...> - 2006-03-14 07:15:50
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14501/src Modified Files: log.c Log Message: SF Patch #1446733 from Sadrul 'System logs currently have header/title "Conversation with ...". I think "System log for ..." is a better one.' Index: log.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/log.c,v retrieving revision 1.161 retrieving revision 1.162 diff -u -d -p -r1.161 -r1.162 --- log.c 9 Mar 2006 03:02:23 -0000 1.161 +++ log.c 14 Mar 2006 07:15:43 -0000 1.162 @@ -1047,12 +1047,16 @@ static gsize html_logger_write(GaimLog * written += fprintf(data->file, "<html><head>"); written += fprintf(data->file, "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">"); written += fprintf(data->file, "<title>"); - 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, "</title></head><body>"); - written += fprintf(data->file, - "<h3>Conversation with %s at %s on %s (%s)</h3>\n", - log->name, date, gaim_account_get_username(log->account), prpl); + written += fprintf(data->file, "<h3>%s</h3>\n", header); } /* if we can't write to the file, give up before we hurt ourselves */ @@ -1184,9 +1188,14 @@ static gsize txt_logger_write(GaimLog *l 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 */ |