Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/connection.c Fri Nov 04 17:33:32 2005 +0000 +++ b/src/connection.c Fri Nov 04 17:47:04 2005 +0000 @@ -274,7 +274,7 @@ presence = gaim_account_get_presence(account); /* Set the time the account came online */ - time(&gc->login_time); + gaim_presence_set_login_time(presence, time(NULL)); if (gaim_prefs_get_bool("/core/logging/log_system")) { @@ -282,7 +282,8 @@ char *msg = g_strdup_printf("+++ %s signed on", gaim_account_get_username(account)); gaim_log_write(log, GAIM_MESSAGE_SYSTEM, - gaim_account_get_username(account), gc->login_time, + gaim_account_get_username(account), + gaim_presence_get_login_time(presence), msg); g_free(msg); }