# HG changeset patch # User Etan Reisner # Date 1118993855 0 # Node ID 7653143dec3649ef5ee941903aaaca9082b2f23b # Parent 959727c2573665e4e76b45151c43444a9ef6fa18 [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 diff -r 959727c25736 -r 7653143dec36 src/protocols/jabber/presence.c --- 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)