comparison src/prpl.c @ 13330:e9cf00a30b49

[gaim-migrate @ 15700] make sure disconnect messages get send before we disconnect committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 26 Feb 2006 20:16:56 +0000
parents ccd0fa854471
children 99d081c638f6
comparison
equal deleted inserted replaced
13329:1d569233f257 13330:e9cf00a30b49
290 { 290 {
291 gaim_account_connect(account); 291 gaim_account_connect(account);
292 return; 292 return;
293 } 293 }
294 294
295 if (!gaim_status_is_online(new_status))
296 {
297 if (!gaim_account_is_disconnected(account))
298 gaim_account_disconnect(account);
299 return;
300 }
301 295
302 if (gaim_account_is_connecting(account)) 296 if (gaim_account_is_connecting(account))
303 /* 297 /*
304 * We don't need to call the set_status PRPL function because 298 * We don't need to call the set_status PRPL function because
305 * the PRPL will take care of setting its status during the 299 * the PRPL will take care of setting its status during the
316 310
317 if (prpl_info->set_status != NULL) 311 if (prpl_info->set_status != NULL)
318 { 312 {
319 prpl_info->set_status(account, new_status); 313 prpl_info->set_status(account, new_status);
320 } 314 }
315
316 if (!gaim_status_is_online(new_status))
317 {
318 if (!gaim_account_is_disconnected(account))
319 gaim_account_disconnect(account);
320 return;
321 }
321 } 322 }
322 323
323 void 324 void
324 gaim_prpl_change_account_status(GaimAccount *account, 325 gaim_prpl_change_account_status(GaimAccount *account,
325 GaimStatus *old_status, GaimStatus *new_status) 326 GaimStatus *old_status, GaimStatus *new_status)