Mercurial > pidgin
comparison src/prpl.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 | e1e47878d0ed |
children | ef57eccb9a3b |
comparison
equal
deleted
inserted
replaced
11717:84d1145522c2 | 11718:11e95968c9ff |
---|---|
287 | 287 |
288 g_return_if_fail(account != NULL); | 288 g_return_if_fail(account != NULL); |
289 g_return_if_fail(old_status != NULL); | 289 g_return_if_fail(old_status != NULL); |
290 g_return_if_fail(new_status != NULL); | 290 g_return_if_fail(new_status != NULL); |
291 | 291 |
292 if (gaim_account_is_connecting(account)) | |
293 /* | |
294 * We don't need to call the set_status PRPL function because | |
295 * the PRPL will take care of setting its status during the | |
296 * connection process. | |
297 */ | |
298 return; | |
299 | |
300 if (gaim_status_is_online(new_status) && | |
301 gaim_account_is_disconnected(account)) | |
302 { | |
303 gaim_account_connect(account); | |
304 return; | |
305 } | |
306 | |
307 if (!gaim_status_is_online(new_status) && | |
308 !gaim_account_is_disconnected(account)) | |
309 { | |
310 gaim_account_disconnect(account); | |
311 return; | |
312 } | |
313 | |
292 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); | 314 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); |
293 | 315 |
294 if (prpl == NULL) | 316 if (prpl == NULL) |
295 return; | 317 return; |
296 | 318 |