comparison src/account.c @ 8658:4133c85d76f7

[gaim-migrate @ 9410] Fix the problem mentioned on gaim-devel: "Crash when 'Log your own signons/idleness/awayness' is on and a connection is cancelled while connecting" There is a flaw in Gaim here. "You have signed on" can be written to the system log before "You have signed off." This happens when you disconnect an account while it is connected. It's an extremely minor problem and I don't feel like fixing it. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 14 Apr 2004 04:04:42 +0000
parents 0706d86ecec2
children 725413cc9fb9
comparison
equal deleted inserted replaced
8657:4a1e87c50d6f 8658:4133c85d76f7
925 gaim_account_get_log(GaimAccount *account) 925 gaim_account_get_log(GaimAccount *account)
926 { 926 {
927 g_return_val_if_fail(account != NULL, NULL); 927 g_return_val_if_fail(account != NULL, NULL);
928 928
929 if(!account->system_log){ 929 if(!account->system_log){
930 GaimConnection *gc;
931
932 gc = gaim_account_get_connection(account);
933
930 account->system_log = gaim_log_new(GAIM_LOG_SYSTEM, 934 account->system_log = gaim_log_new(GAIM_LOG_SYSTEM,
931 gaim_account_get_username(account), account, 935 gaim_account_get_username(account), account,
932 account->gc->login_time); 936 gc != NULL ? gc->login_time : time(NULL));
933 } 937 }
934 938
935 return account->system_log; 939 return account->system_log;
936 } 940 }
937 941