Mercurial > pidgin.yaz
comparison src/protocols/gg/gg.c @ 11718:11e95968c9ff
[gaim-migrate @ 14009]
PRPLs are no longer required to call gaim_account_connect() and
gaim_account_disconnect()--it is done in the core. Having the PRPLs
do it was kind of silly. And this should allow me to improve the
auto-reconnect plugin some. I think.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 22 Oct 2005 20:09:24 +0000 |
parents | 3a05b53a589e |
children | fa742ad8068c |
comparison
equal
deleted
inserted
replaced
11717:84d1145522c2 | 11718:11e95968c9ff |
---|---|
1275 | 1275 |
1276 prim = gaim_status_type_get_primitive(gaim_status_get_type(status)); | 1276 prim = gaim_status_type_get_primitive(gaim_status_get_type(status)); |
1277 | 1277 |
1278 if (!gaim_status_is_active(status)) | 1278 if (!gaim_status_is_active(status)) |
1279 return; | 1279 return; |
1280 | |
1281 if (prim == GAIM_STATUS_OFFLINE) { | |
1282 gaim_account_disconnect(account); | |
1283 return; | |
1284 } | |
1285 | |
1286 if (!gaim_account_is_connected(account)) { | |
1287 gaim_account_connect(account); | |
1288 return; | |
1289 } | |
1290 | 1280 |
1291 gc = gaim_account_get_connection(account); | 1281 gc = gaim_account_get_connection(account); |
1292 info = gc->proto_data; | 1282 info = gc->proto_data; |
1293 | 1283 |
1294 status_id = gaim_status_get_id(status); | 1284 status_id = gaim_status_get_id(status); |