comparison 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
comparison
equal deleted inserted replaced
11972:73777ad45562 11973:0fab529c01fc
1889 gaim_account_get_log(GaimAccount *account) 1889 gaim_account_get_log(GaimAccount *account)
1890 { 1890 {
1891 g_return_val_if_fail(account != NULL, NULL); 1891 g_return_val_if_fail(account != NULL, NULL);
1892 1892
1893 if(!account->system_log){ 1893 if(!account->system_log){
1894 GaimConnection *gc; 1894 GaimPresence *presence;
1895 1895 int login_time;
1896 gc = gaim_account_get_connection(account); 1896
1897 presence = gaim_account_get_presence(account);
1898 login_time = gaim_presence_get_login_time(presence);
1897 1899
1898 account->system_log = gaim_log_new(GAIM_LOG_SYSTEM, 1900 account->system_log = gaim_log_new(GAIM_LOG_SYSTEM,
1899 gaim_account_get_username(account), account, NULL, 1901 gaim_account_get_username(account), account, NULL,
1900 (gc != NULL && gc->login_time != 0) ? gc->login_time : time(NULL)); 1902 (login_time != 0) ? login_time : time(NULL));
1901 } 1903 }
1902 1904
1903 return account->system_log; 1905 return account->system_log;
1904 } 1906 }
1905 1907