Mercurial > pidgin
comparison plugins/log_reader.c @ 13378:dfd9eaeae114
[gaim-migrate @ 15751]
I didn't look through the rest of this, and the .adiumLog == plaintext assumption will have to be changed since that's likely to be the extension of the XML-based Adium logs (it hasn't been used by Adium in any public release so can probably just be nixed)...
but .AdiumHTMLLog is the extension used by the HTML-based Adium logs in Adium 1.0svn.
committer: Tailor Script <tailor@pidgin.im>
| author | Evan Schoenberg <evan.s@dreskin.net> |
|---|---|
| date | Thu, 02 Mar 2006 21:15:57 +0000 |
| parents | 8921c9aa2b20 |
| children | 0dbab0e08f2a |
comparison
equal
deleted
inserted
replaced
| 13377:71fbe885c50b | 13378:dfd9eaeae114 |
|---|---|
| 96 const gchar *file; | 96 const gchar *file; |
| 97 | 97 |
| 98 while ((file = g_dir_read_name(dir))) { | 98 while ((file = g_dir_read_name(dir))) { |
| 99 if (!g_str_has_prefix(file, sn)) | 99 if (!g_str_has_prefix(file, sn)) |
| 100 continue; | 100 continue; |
| 101 if (g_str_has_suffix(file, ".html")) { | 101 if (g_str_has_suffix(file, ".html") || g_str_has_suffix(file, ".AdiumHTMLLog")) { |
| 102 struct tm tm; | 102 struct tm tm; |
| 103 const char *date = file; | 103 const char *date = file; |
| 104 | 104 |
| 105 date += strlen(sn) + 2; | 105 date += strlen(sn) + 2; |
| 106 if (sscanf(date, "%u|%u|%u", | 106 if (sscanf(date, "%u|%u|%u", |
