Mercurial > pidgin.yaz
diff src/account.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 | 52f27ffe68a5 |
children | e33a9171aceb |
line wrap: on
line diff
--- a/src/account.c Fri Nov 04 17:33:32 2005 +0000 +++ b/src/account.c Fri Nov 04 17:47:04 2005 +0000 @@ -1891,13 +1891,15 @@ g_return_val_if_fail(account != NULL, NULL); if(!account->system_log){ - GaimConnection *gc; - - gc = gaim_account_get_connection(account); + GaimPresence *presence; + int login_time; + + presence = gaim_account_get_presence(account); + login_time = gaim_presence_get_login_time(presence); account->system_log = gaim_log_new(GAIM_LOG_SYSTEM, gaim_account_get_username(account), account, NULL, - (gc != NULL && gc->login_time != 0) ? gc->login_time : time(NULL)); + (login_time != 0) ? login_time : time(NULL)); } return account->system_log;