comparison src/log.c @ 5896:a156d08e481e

[gaim-migrate @ 6328] Groove is in the heart committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 15 Jun 2003 18:22:11 +0000
parents 059d95c67cda
children 91ee71a394be
comparison
equal deleted inserted replaced
5895:c6f145ab2846 5896:a156d08e481e
276 } 276 }
277 277
278 void system_log(enum log_event what, GaimConnection *gc, 278 void system_log(enum log_event what, GaimConnection *gc,
279 struct buddy *who, int why) 279 struct buddy *who, int why)
280 { 280 {
281 GaimAccount *account; 281 GaimAccount *account = NULL;
282 FILE *fd; 282 FILE *fd;
283 char text[256], html[256]; 283 char text[256], html[256];
284 284
285 account = gaim_connection_get_account(gc); 285 if (gc != NULL)
286 account = gaim_connection_get_account(gc);
286 287
287 if ((why & OPT_LOG_MY_SIGNON && 288 if ((why & OPT_LOG_MY_SIGNON &&
288 !gaim_prefs_get_bool("/gaim/gtk/logging/log_own_states")) || 289 !gaim_prefs_get_bool("/gaim/gtk/logging/log_own_states")) ||
289 (why & OPT_LOG_BUDDY_SIGNON && 290 (why & OPT_LOG_BUDDY_SIGNON &&
290 !gaim_prefs_get_bool("/gaim/gtk/logging/log_signon_signoff")) || 291 !gaim_prefs_get_bool("/gaim/gtk/logging/log_signon_signoff")) ||