Mercurial > ~mikael > mcabber > hg
diff mcabber/src/jab_iq.c @ 1014:99c5278bf6b8
Keep the status and status messages when we're disconnected
Improve the automatic reconnection after a network failure.
- AutoConnection is only set to false when the user disconnects
explicitly (i.e. in do_disconnect()).
- AutoConnection is set to TRUE after the 1st successful connection.
- In jb_setstatus(), update the status message and the "wanted status"
even in offline mode. It helps with auto-away.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 12 Nov 2006 22:25:14 +0100 |
parents | bbf53cd43fbb |
children | 579299b1c9b2 |
line wrap: on
line diff
--- a/mcabber/src/jab_iq.c Sun Nov 12 15:55:04 2006 +0100 +++ b/mcabber/src/jab_iq.c Sun Nov 12 22:25:14 2006 +0100 @@ -679,7 +679,7 @@ // Post-login stuff // Usually we request the roster only at connection time // so we should be there only once. (That's ugly, however) - jb_setstatus(available, NULL, NULL); + jb_setprevstatus(); } }