Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/prpl.c Sun Feb 26 19:35:31 2006 +0000 +++ b/src/prpl.c Sun Feb 26 20:16:56 2006 +0000 @@ -292,12 +292,6 @@ return; } - if (!gaim_status_is_online(new_status)) - { - if (!gaim_account_is_disconnected(account)) - gaim_account_disconnect(account); - return; - } if (gaim_account_is_connecting(account)) /* @@ -318,6 +312,13 @@ { prpl_info->set_status(account, new_status); } + + if (!gaim_status_is_online(new_status)) + { + if (!gaim_account_is_disconnected(account)) + gaim_account_disconnect(account); + return; + } } void