Mercurial > pidgin
comparison src/log.c @ 13508:9710aeb12c0d
[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 <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Tue, 14 Mar 2006 07:15:43 +0000 |
| parents | 38bcc0a2d4da |
| children | 7608c01ebe61 |
comparison
equal
deleted
inserted
replaced
| 13507:702107dd58f1 | 13508:9710aeb12c0d |
|---|---|
| 1045 date = gaim_date_format_full(localtime(&log->time)); | 1045 date = gaim_date_format_full(localtime(&log->time)); |
| 1046 | 1046 |
| 1047 written += fprintf(data->file, "<html><head>"); | 1047 written += fprintf(data->file, "<html><head>"); |
| 1048 written += fprintf(data->file, "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">"); | 1048 written += fprintf(data->file, "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">"); |
| 1049 written += fprintf(data->file, "<title>"); | 1049 written += fprintf(data->file, "<title>"); |
| 1050 written += fprintf(data->file, "Conversation with %s at %s on %s (%s)", | 1050 if (log->type == GAIM_LOG_SYSTEM) |
| 1051 log->name, date, gaim_account_get_username(log->account), prpl); | 1051 written += fprintf(data->file, "System log for account %s (%s) connected at %s", |
| 1052 gaim_account_get_username(log->account), prpl, date); | |
| 1053 else | |
| 1054 written += fprintf(data->file, "Conversation with %s at %s on %s (%s)", | |
| 1055 log->name, date, gaim_account_get_username(log->account), prpl); | |
| 1056 | |
| 1057 written += fprintf(data->file, header); | |
| 1052 written += fprintf(data->file, "</title></head><body>"); | 1058 written += fprintf(data->file, "</title></head><body>"); |
| 1053 written += fprintf(data->file, | 1059 written += fprintf(data->file, "<h3>%s</h3>\n", header); |
| 1054 "<h3>Conversation with %s at %s on %s (%s)</h3>\n", | |
| 1055 log->name, date, gaim_account_get_username(log->account), prpl); | |
| 1056 } | 1060 } |
| 1057 | 1061 |
| 1058 /* if we can't write to the file, give up before we hurt ourselves */ | 1062 /* if we can't write to the file, give up before we hurt ourselves */ |
| 1059 if(!data->file) | 1063 if(!data->file) |
| 1060 return 0; | 1064 return 0; |
| 1182 | 1186 |
| 1183 /* if we can't write to the file, give up before we hurt ourselves */ | 1187 /* if we can't write to the file, give up before we hurt ourselves */ |
| 1184 if(!data->file) | 1188 if(!data->file) |
| 1185 return 0; | 1189 return 0; |
| 1186 | 1190 |
| 1187 written += fprintf(data->file, "Conversation with %s at %s on %s (%s)\n", | 1191 if (log->type == GAIM_LOG_SYSTEM) |
| 1188 log->name, gaim_date_format_full(localtime(&log->time)), | 1192 written += fprintf(data->file, "System log for account %s (%s) connected at %s\n", |
| 1189 gaim_account_get_username(log->account), prpl); | 1193 gaim_account_get_username(log->account), prpl, |
| 1194 gaim_date_format_full(localtime(&log->time))); | |
| 1195 else | |
| 1196 written += fprintf(data->file, "Conversation with %s at %s on %s (%s)\n", | |
| 1197 log->name, gaim_date_format_full(localtime(&log->time)), | |
| 1198 gaim_account_get_username(log->account), prpl); | |
| 1190 } | 1199 } |
| 1191 | 1200 |
| 1192 /* if we can't write to the file, give up before we hurt ourselves */ | 1201 /* if we can't write to the file, give up before we hurt ourselves */ |
| 1193 if(!data->file) | 1202 if(!data->file) |
| 1194 return 0; | 1203 return 0; |
