comparison src/connection.c @ 11973:0fab529c01fc

[gaim-migrate @ 14266] Get rid of gc->login_time FYI login_time and is_idle are both in gc->presence committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 04 Nov 2005 17:47:04 +0000
parents d2db6426c88a
children aadf61b30056
comparison
equal deleted inserted replaced
11972:73777ad45562 11973:0fab529c01fc
272 272
273 account = gaim_connection_get_account(gc); 273 account = gaim_connection_get_account(gc);
274 presence = gaim_account_get_presence(account); 274 presence = gaim_account_get_presence(account);
275 275
276 /* Set the time the account came online */ 276 /* Set the time the account came online */
277 time(&gc->login_time); 277 gaim_presence_set_login_time(presence, time(NULL));
278 278
279 if (gaim_prefs_get_bool("/core/logging/log_system")) 279 if (gaim_prefs_get_bool("/core/logging/log_system"))
280 { 280 {
281 GaimLog *log = gaim_account_get_log(account); 281 GaimLog *log = gaim_account_get_log(account);
282 char *msg = g_strdup_printf("+++ %s signed on", 282 char *msg = g_strdup_printf("+++ %s signed on",
283 gaim_account_get_username(account)); 283 gaim_account_get_username(account));
284 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, 284 gaim_log_write(log, GAIM_MESSAGE_SYSTEM,
285 gaim_account_get_username(account), gc->login_time, 285 gaim_account_get_username(account),
286 gaim_presence_get_login_time(presence),
286 msg); 287 msg);
287 g_free(msg); 288 g_free(msg);
288 } 289 }
289 290
290 if (ops != NULL && ops->connected != NULL) 291 if (ops != NULL && ops->connected != NULL)