Mercurial > pidgin.yaz
comparison src/account.c @ 9021:3d30ed8dc7b0
[gaim-migrate @ 9797]
This causes bad stuff to happen when an account is unable to connect.
I'm reverting to what it was before my change 20 minutes ago.
Hopefully I'll fix it later tonight
(Basically I don't think connecting accounts should be classified as "online.")
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 22 May 2004 23:24:19 +0000 |
parents | db1dc2d02020 |
children | 7a8aa87164ae |
comparison
equal
deleted
inserted
replaced
9020:8f281104c031 | 9021:3d30ed8dc7b0 |
---|---|
681 | 681 |
682 g_return_val_if_fail(account != NULL, FALSE); | 682 g_return_val_if_fail(account != NULL, FALSE); |
683 | 683 |
684 gc = gaim_account_get_connection(account); | 684 gc = gaim_account_get_connection(account); |
685 | 685 |
686 return ((gc != NULL) && GAIM_CONNECTION_IS_CONNECTED(gc)); | 686 /* XXX - The first way is better... but it doesn't work quite right yet */ |
687 /* return ((gc != NULL) && GAIM_CONNECTION_IS_CONNECTED(gc)); */ | |
688 return ((gc != NULL) && gaim_connection_get_state(gc) != GAIM_DISCONNECTED); | |
687 } | 689 } |
688 | 690 |
689 const char * | 691 const char * |
690 gaim_account_get_username(const GaimAccount *account) | 692 gaim_account_get_username(const GaimAccount *account) |
691 { | 693 { |