comparison src/protocols/bonjour/bonjour.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 b91a84e7cbcb
children 4669e7461968
comparison
equal deleted inserted replaced
11717:84d1145522c2 11718:11e95968c9ff
175 175
176 disconnected = gaim_account_is_disconnected(account); 176 disconnected = gaim_account_is_disconnected(account);
177 type = gaim_status_get_type(status); 177 type = gaim_status_get_type(status);
178 primitive = gaim_status_type_get_primitive(type); 178 primitive = gaim_status_type_get_primitive(type);
179 presence = gaim_account_get_presence(account); 179 presence = gaim_account_get_presence(account);
180
181 if (primitive != GAIM_STATUS_OFFLINE && disconnected)
182 {
183 gaim_account_connect(account);
184 return;
185 }
186 if (primitive == GAIM_STATUS_OFFLINE && !disconnected)
187 {
188 gaim_account_disconnect(account);
189 return;
190 }
191 180
192 if (!gaim_account_is_connected(account)) 181 if (!gaim_account_is_connected(account))
193 /* TODO: Does this mean we're connecting? */ 182 /* TODO: Does this mean we're connecting? */
194 return; 183 return;
195 184