Mercurial > pidgin.yaz
comparison src/connection.c @ 11698:a647f92e1d57
[gaim-migrate @ 13989]
Change the pref "Enable system log" to "Log all status changes" and
remove:
* Log when buddies log in/log out
* Log when buddies become idle/un-idle
* Log when buddies go away/come back
* Log your own signons/idleness/awayness
If the status change log is enable, then the above 4 things will all
be logged
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 20 Oct 2005 04:04:06 +0000 |
parents | 9f521a61ef58 |
children | fa742ad8068c |
comparison
equal
deleted
inserted
replaced
11697:186d2d293ef4 | 11698:a647f92e1d57 |
---|---|
278 presence = gaim_account_get_presence(account); | 278 presence = gaim_account_get_presence(account); |
279 | 279 |
280 /* Set the time the account came online */ | 280 /* Set the time the account came online */ |
281 time(&gc->login_time); | 281 time(&gc->login_time); |
282 | 282 |
283 if (gaim_prefs_get_bool("/core/logging/log_system") && | 283 if (gaim_prefs_get_bool("/core/logging/log_system")) |
284 gaim_prefs_get_bool("/core/logging/log_own_states")){ | 284 { |
285 GaimLog *log = gaim_account_get_log(account); | 285 GaimLog *log = gaim_account_get_log(account); |
286 char *msg = g_strdup_printf("+++ %s signed on", | 286 char *msg = g_strdup_printf("+++ %s signed on", |
287 gaim_account_get_username(account)); | 287 gaim_account_get_username(account)); |
288 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, | 288 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, |
289 gaim_account_get_username(account), gc->login_time, | 289 gaim_account_get_username(account), gc->login_time, |
326 serv_touch_idle(gc); | 326 serv_touch_idle(gc); |
327 } | 327 } |
328 else if (gc->state == GAIM_DISCONNECTED) { | 328 else if (gc->state == GAIM_DISCONNECTED) { |
329 GaimAccount *account = gaim_connection_get_account(gc); | 329 GaimAccount *account = gaim_connection_get_account(gc); |
330 | 330 |
331 if(gaim_prefs_get_bool("/core/logging/log_system") && | 331 if (gaim_prefs_get_bool("/core/logging/log_system")) |
332 gaim_prefs_get_bool("/core/logging/log_own_states")){ | 332 { |
333 GaimLog *log = gaim_account_get_log(account); | 333 GaimLog *log = gaim_account_get_log(account); |
334 char *msg = g_strdup_printf("+++ %s signed off", | 334 char *msg = g_strdup_printf("+++ %s signed off", |
335 gaim_account_get_username(account)); | 335 gaim_account_get_username(account)); |
336 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, | 336 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, |
337 gaim_account_get_username(account), time(NULL), | 337 gaim_account_get_username(account), time(NULL), |