comparison src/log.c @ 9500:db95a6641ec1

[gaim-migrate @ 10327] (12:02:41) javabsp: "For those people who actually care about MSN _AND_ system log, not that there are many..." committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 10 Jul 2004 16:06:41 +0000
parents de87e510ff9a
children 9c78aaa4117e
comparison
equal deleted inserted replaced
9499:b91aa8342584 9500:db95a6641ec1
348 me = g_strdup(gaim_normalize(account, gaim_account_get_username(account))); 348 me = g_strdup(gaim_normalize(account, gaim_account_get_username(account)));
349 349
350 /* does this seem like a bad way to get this component of the path to anyone else? --Nathan */ 350 /* does this seem like a bad way to get this component of the path to anyone else? --Nathan */
351 prpl = GAIM_PLUGIN_PROTOCOL_INFO 351 prpl = GAIM_PLUGIN_PROTOCOL_INFO
352 (gaim_find_prpl(gaim_account_get_protocol_id(account)))->list_icon(account, NULL); 352 (gaim_find_prpl(gaim_account_get_protocol_id(account)))->list_icon(account, NULL);
353 path = g_build_filename(gaim_user_dir(), "logs", prpl, me, gaim_normalize(account, name), NULL); 353 if(type == GAIM_LOG_SYSTEM)
354 path = g_build_filename(gaim_user_dir(),"logs", prpl, me, name, NULL);
355 else
356 path = g_build_filename(gaim_user_dir(),"logs", prpl, me, gaim_normalize(account, name), NULL);
354 g_free(me); 357 g_free(me);
355 358
356 if (!(dir = g_dir_open(path, 0, NULL))) { 359 if (!(dir = g_dir_open(path, 0, NULL))) {
357 g_free(path); 360 g_free(path);
358 return NULL; 361 return NULL;