Mercurial > pidgin.yaz
diff src/protocols/jabber/presence.c @ 11251:ad9a61894d9b
[gaim-migrate @ 13420]
sf patch #1242524, from Sadrul Habib Chowdhury
gaim_account_is_connected fix
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 13 Aug 2005 05:54:34 +0000 |
parents | 8dca96cbcd64 |
children | e4868370c433 |
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c Sat Aug 13 05:30:13 2005 +0000 +++ b/src/protocols/jabber/presence.c Sat Aug 13 05:54:34 2005 +0000 @@ -91,7 +91,7 @@ { GaimConnection *gc = NULL; JabberStream *js = NULL; - gboolean connected; + gboolean disconnected; int primitive; xmlnode *presence, *x, *photo; char *stripped = NULL; @@ -102,14 +102,14 @@ if(!gaim_status_is_active(status)) return; - connected = gaim_account_is_connected(account); + disconnected = gaim_account_is_disconnected(account); primitive = gaim_status_type_get_primitive(gaim_status_get_type(status)); - if(primitive != GAIM_STATUS_OFFLINE && !connected) { + if(primitive != GAIM_STATUS_OFFLINE && disconnected) { gaim_account_connect(account); } - if(!connected) + if(disconnected) return; gc = gaim_account_get_connection(account); @@ -137,7 +137,7 @@ jabber_presence_fake_to_self(js, status); - if(primitive == GAIM_STATUS_OFFLINE && connected) { + if(primitive == GAIM_STATUS_OFFLINE && !disconnected) { gaim_account_disconnect(account); } }