Mercurial > pidgin.yaz
changeset 11013:7653143dec36
[gaim-migrate @ 12879]
This fixes signing off and on again with jabber for me. I haven't tested being disconnected but it works if I choose Offline from the status box.
Oh, I'm not exactly sure this is the right way to fix this but it works for me. Nathan (or anyone else) feel free to tell me I'm wrong or fix it.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Fri, 17 Jun 2005 07:37:35 +0000 |
parents | 959727c25736 |
children | 8d67f04911d6 |
files | src/protocols/jabber/presence.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c Tue Jun 14 20:28:04 2005 +0000 +++ b/src/protocols/jabber/presence.c Fri Jun 17 07:37:35 2005 +0000 @@ -107,8 +107,6 @@ if(primitive != GAIM_STATUS_OFFLINE && !connected) { gaim_account_connect(account); - } else if(primitive == GAIM_STATUS_OFFLINE && connected) { - gaim_account_disconnect(account); } if(!connected) @@ -139,6 +137,9 @@ jabber_presence_fake_to_self(js, status); + if(primitive == GAIM_STATUS_OFFLINE && connected) { + gaim_account_disconnect(account); + } } xmlnode *jabber_presence_create(JabberBuddyState state, const char *msg, int priority)