Mercurial > pidgin.yaz
comparison src/log.c @ 7261:1930e3d00ecd
[gaim-migrate @ 7838]
prpl-specific normalize is back, after my crusade to kill it.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 14 Oct 2003 05:07:39 +0000 |
parents | 6faeeecab0dc |
children | ab828b8c3f22 |
comparison
equal
deleted
inserted
replaced
7260:49839c4cbb1c | 7261:1930e3d00ecd |
---|---|
45 char *pname = g_malloc(BUF_LEN); | 45 char *pname = g_malloc(BUF_LEN); |
46 GList *lc = log_conversations; | 46 GList *lc = log_conversations; |
47 struct log_conversation *l; | 47 struct log_conversation *l; |
48 | 48 |
49 | 49 |
50 strcpy(pname, gaim_normalize(name)); | 50 strcpy(pname, gaim_normalize(NULL, name)); |
51 | 51 |
52 while (lc) { | 52 while (lc) { |
53 l = (struct log_conversation *)lc->data; | 53 l = (struct log_conversation *)lc->data; |
54 if (!gaim_utf8_strcasecmp(pname, gaim_normalize(l->name))) { | 54 if (!gaim_utf8_strcasecmp(pname, gaim_normalize(NULL, l->name))) { |
55 g_free(pname); | 55 g_free(pname); |
56 return l; | 56 return l; |
57 } | 57 } |
58 lc = lc->next; | 58 lc = lc->next; |
59 } | 59 } |
213 } | 213 } |
214 | 214 |
215 return fd; | 215 return fd; |
216 } | 216 } |
217 | 217 |
218 g_snprintf(realname, sizeof(realname), "%s.log", gaim_normalize(name)); | 218 g_snprintf(realname, sizeof(realname), "%s.log", gaim_normalize(NULL, name)); |
219 fd = open_gaim_log_file(realname, &flag); | 219 fd = open_gaim_log_file(realname, &flag); |
220 | 220 |
221 if (fd && flag) { /* is a new file */ | 221 if (fd && flag) { /* is a new file */ |
222 if (gaim_prefs_get_bool("/gaim/gtk/logging/strip_html")) { | 222 if (gaim_prefs_get_bool("/gaim/gtk/logging/strip_html")) { |
223 fprintf(fd, _("IM Sessions with %s\n"), name); | 223 fprintf(fd, _("IM Sessions with %s\n"), name); |